Pass bltz test

This commit is contained in:
2024-07-11 00:37:27 +08:00
parent 7b24b6bc2f
commit 78f6fb4d50
3 changed files with 4 additions and 4 deletions

View File

@@ -7,17 +7,17 @@ module InstructionMemory (
always @(*) begin
case (address[31:2])
20'd0: instruction <= 32'h20110002; // addi $s1, $zero, 2
20'd0: instruction <= 32'h2011fffe; // addi $s1, $zero, 2
20'd1: instruction <= 32'h00000000;
20'd2: instruction <= 32'h00000000;
20'd3: instruction <= 32'h00000000;
20'd4: instruction <= 32'h00000000; // start:
20'd5: instruction <= 32'h2231ffff; // addi $s1, $s1, -1
20'd5: instruction <= 32'h22310001; // addi $s1, $s1, -1
20'd6: instruction <= 32'h00000000;
20'd7: instruction <= 32'h00000000;
20'd8: instruction <= 32'h00000000;
20'd9: instruction <= 32'h00000000;
20'd10: instruction <= 32'h1e20fffa; // bgtz $s1, start
20'd10: instruction <= 32'h0620fffa; // bgtz $s1, start
20'd11: instruction <= 32'h00000000;
20'd12: instruction <= 32'h00000000;
20'd13: instruction <= 32'h00000000;

View File

@@ -60,7 +60,7 @@
<Option Name="IPStaticSourceDir" Val="$PIPUSERFILESDIR/ipstatic"/>
<Option Name="EnableBDX" Val="FALSE"/>
<Option Name="FeatureSet" Val="FeatureSet_Classic"/>
<Option Name="WTXSimLaunchSim" Val="198"/>
<Option Name="WTXSimLaunchSim" Val="200"/>
<Option Name="WTModelSimLaunchSim" Val="0"/>
<Option Name="WTQuestaLaunchSim" Val="0"/>
<Option Name="WTIesLaunchSim" Val="0"/>