Files
PipelineProcessorTests/09test_jal_jr.txt
2024-07-11 01:12:24 +08:00

15 lines
679 B
Plaintext

20'd0: instruction <= 32'h20110001; // addi $s1, $zero, 1
20'd1: instruction <= 32'h00000000;
20'd2: instruction <= 32'h00000000;
20'd3: instruction <= 32'h00000000;
20'd4: instruction <= 32'h00000000;
20'd5: instruction <= 32'h0c000007; // jal func
// end:
20'd6: instruction <= 32'h08000006; // j end
// func:
20'd7: instruction <= 32'h20120002; // addi $s2, $zero, 2
20'd8: instruction <= 32'h00000000;
20'd9: instruction <= 32'h00000000;
20'd10: instruction <= 32'h00000000;
20'd11: instruction <= 32'h00000000;
20'd12: instruction <= 32'h03e00008; // jr $ra