Test hazard
This commit is contained in:
5
12test_hazard.asm
Normal file
5
12test_hazard.asm
Normal 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
5
12test_hazard.txt
Normal 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
5
12test_hazard_mars.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
3c104000
|
||||
20110001
|
||||
ae110000
|
||||
8e120000
|
||||
ae120004
|
||||
Reference in New Issue
Block a user