Test ex forward
This commit is contained in:
6
11test_ex_forward.asm
Normal file
6
11test_ex_forward.asm
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
addi $s1, $zero, 1
|
||||||
|
addi $s2, $zero, 2
|
||||||
|
add $s3, $s1, $s1 # MEM/WB-EX
|
||||||
|
add $s3, $s3, $s1 # EX/MEM-EX
|
||||||
|
addi $s4, $zero, 3
|
||||||
|
add $s3, $s3, $s2 # MEM/WB-EX
|
||||||
6
11test_ex_forward.txt
Normal file
6
11test_ex_forward.txt
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
20'd0: instruction <= 32'h20110001; // addi $s1, $zero, 1
|
||||||
|
20'd1: instruction <= 32'h20120002; // addi $s2, $zero, 2
|
||||||
|
20'd2: instruction <= 32'h02319820; // add $s3, $s1, $s1
|
||||||
|
20'd3: instruction <= 32'h02719820; // add $s3, $s3, $s1
|
||||||
|
20'd4: instruction <= 32'h20140003; // addi $s4, $zero, 3
|
||||||
|
20'd5: instruction <= 32'h02729820; // add $s3, $s3, $s2
|
||||||
6
11test_ex_forward_mars.txt
Normal file
6
11test_ex_forward_mars.txt
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
20110001
|
||||||
|
20120002
|
||||||
|
02319820
|
||||||
|
02719820
|
||||||
|
20140003
|
||||||
|
02729820
|
||||||
Reference in New Issue
Block a user