Skip to content

Commit 0c283ba

Browse files
committed
dsjkjsg
1 parent 7a2b5e3 commit 0c283ba

File tree

6 files changed

+46
-338
lines changed

6 files changed

+46
-338
lines changed

pipelined/testcases/3.s

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
begin:
2-
addi x4, x5, 1
3-
addi x8, x0, 0
4-
addi x8, x0, 0
5-
beq x1, x4, L1
2+
beq x0, x0, L1
63
addi x6, x0, 3
74

85
L1:

pipelined/testcases/4.s

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
begin:
2+
beq x0, x0, end
3+
4+
L1:
5+
addi x5, x0, 4
6+
7+
L2:
8+
addi x6, x0, 4
9+
10+
L3:
11+
addi x7, x0, 4
12+
13+
end:
14+
nop

pipelined/verilog/testbench_pipelined.v

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

1818
// Initialize instruction memory first
19-
cpu.imem.memory[0] = 32'b00000000000100101000001000010011;
20-
cpu.imem.memory[1] = 32'b00000000000000000000010000010011;
21-
cpu.imem.memory[2] = 32'b00000000000000000000010000010011;
22-
cpu.imem.memory[3] = 32'b00000000010000001000010001100011;
23-
cpu.imem.memory[4] = 32'b00000000001100000000001100010011;
24-
cpu.imem.memory[5] = 32'b00000000010000000000001010010011;
25-
cpu.imem.memory[6] = 32'b00000000000000000000000000000000;
19+
cpu.imem.memory[0] = 32'b00000000000000000000100001100011;
20+
cpu.imem.memory[1] = 32'b00000000010000000000001010010011;
21+
cpu.imem.memory[2] = 32'b00000000010000000000001100010011;
22+
cpu.imem.memory[3] = 32'b00000000010000000000001110010011;
23+
cpu.imem.memory[4] = 32'b00000000000000000000000000000000;
2624

2725
// promper initialization
2826
#10 reset = 0;

sequential/testcases/8.s

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
begin:
2+
beq x0, x0, end
3+
4+
L1:
5+
addi x5, x0, 4
6+
7+
L2:
8+
addi x6, x0, 4
9+
10+
L3:
11+
addi x7, x0, 4
12+
13+
end:
14+
nop

sequential/verilog/testbench_sequential.v

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
`timescale 1ns/1ps
1+
nb`timescale 1ns/1ps
22

33
module testbench_sequential();
44
reg clk;
@@ -26,13 +26,11 @@ module testbench_sequential();
2626
);
2727

2828
initial begin
29-
cpu.imem.memory[0] = 32'b00000000001100000000000010010011;
30-
cpu.imem.memory[1] = 32'b00000000011100000000000100010011;
31-
cpu.imem.memory[2] = 32'b00000000000000001000100001100011;
32-
cpu.imem.memory[3] = 32'b00000000000100010000000100110011;
33-
cpu.imem.memory[4] = 32'b11111111111100001000000010010011;
34-
cpu.imem.memory[5] = 32'b11111110000000000000101011100011;
35-
cpu.imem.memory[6] = 32'b00000000000000000000000000000000;
29+
cpu.imem.memory[0] = 32'b00000000000000000000100001100011;
30+
cpu.imem.memory[1] = 32'b00000000010000000000001010010011;
31+
cpu.imem.memory[2] = 32'b00000000010000000000001100010011;
32+
cpu.imem.memory[3] = 32'b00000000010000000000001110010011;
33+
cpu.imem.memory[4] = 32'b00000000000000000000000000000000;
3634
end
3735

3836

0 commit comments

Comments
 (0)