Skip to content

Commit 574b833

Browse files
committed
1.s works, with a workaround
1 parent c09d8bd commit 574b833

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

pipelined/testcases/1.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
begin:
2+
addi x0, x0, 1 # does nothing
23
addi x1, x0, 1
34
addi x2, x0, 2
45
addi x3, x0, 3

pipelined/verilog/testbench_pipelined.v

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ module testbench_pipelined();
2929
);
3030

3131
initial begin
32-
cpu.imem.memory[0] = 32'b00000000000100000000000010010011;
33-
cpu.imem.memory[1] = 32'b00000000001000000000000100010011;
34-
cpu.imem.memory[2] = 32'b00000000001100000000000110010011;
35-
cpu.imem.memory[3] = 32'b00000000010000000000001000010011;
36-
cpu.imem.memory[4] = 32'b00000000010100000000001010010011;
37-
cpu.imem.memory[5] = 32'b00000000000000000000000000000000;
32+
cpu.imem.memory[0] = 32'b00000000000100000000000000010011;
33+
cpu.imem.memory[1] = 32'b00000000000100000000000010010011;
34+
cpu.imem.memory[2] = 32'b00000000001000000000000100010011;
35+
cpu.imem.memory[3] = 32'b00000000001100000000000110010011;
36+
cpu.imem.memory[4] = 32'b00000000010000000000001000010011;
37+
cpu.imem.memory[5] = 32'b00000000010100000000001010010011;
38+
cpu.imem.memory[6] = 32'b00000000000000000000000000000000;
3839
end
3940

4041

0 commit comments

Comments
 (0)