Test hazard

This commit is contained in:
unlockable
2024-07-11 11:36:57 +08:00
parent dfb0c80650
commit bd64dcf361
3 changed files with 15 additions and 0 deletions

5
12test_hazard.asm Normal file
View File

@@ -0,0 +1,5 @@
lui $s0, 0x4000
addi $s1, $zero, 1
sw $s1, 0($s0)
lw $s2, 0($s0)
sw $s2, 4($s0)

5
12test_hazard.txt Normal file
View File

@@ -0,0 +1,5 @@
20'd0: instruction <= 32'h3c104000; // lui $s0, 0x4000
20'd1: instruction <= 32'h20110001; // addi $s1, $zero, 1
20'd2: instruction <= 32'hae110000; // sw $s1, 0($s0)
20'd3: instruction <= 32'h8e120000; // lw $s2, 0($s0)
20'd4: instruction <= 32'hae120004; // sw $s2, 4($s0)

5
12test_hazard_mars.txt Normal file
View File

@@ -0,0 +1,5 @@
3c104000
20110001
ae110000
8e120000
ae120004