Skip to content

Commit d256837

Browse files
committed
testing load hazard
1 parent 29d1737 commit d256837

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

pipelined/modules/data_memory.hex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// 0x00000000
2-
00
2+
05
33
00
44
00
55
00

pipelined/testcases/8.s

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
begin:
2+
ld x2, 0(x0)
3+
addi x4, x2, 1
4+
add x8, x6, x2
5+
add x9, x4, x2
6+
7+
end:
8+
nop

pipelined/verilog/testbench_pipelined.v

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,8 @@ module testbench_pipelined();
1616
reset = 1;
1717

1818
// Initialize instruction memory first
19-
cpu.imem.memory[0] = 32'b00000000001100000000000010010011;
20-
cpu.imem.memory[1] = 32'b00000000011100000000000100010011;
21-
cpu.imem.memory[2] = 32'b00000000000000001000100001100011;
22-
cpu.imem.memory[3] = 32'b00000000000100010000000100110011;
23-
cpu.imem.memory[4] = 32'b11111111111100001000000010010011;
24-
cpu.imem.memory[5] = 32'b11111110000000000000101011100011;
25-
cpu.imem.memory[6] = 32'b00000000000000000000000000000000;
19+
cpu.imem.memory[0] = 32'b00000000000000000010000100000011;
20+
cpu.imem.memory[1] = 32'b00000000000000000000000000000000;
2621

2722
// promper initialization
2823
#10 reset = 0;

0 commit comments

Comments
 (0)