From 275f66bf2411c5668e62f773f218a5f91b7b79c9 Mon Sep 17 00:00:00 2001 From: Brendan Haines Date: Sun, 27 Sep 2020 18:07:12 -0600 Subject: [PATCH] fix typo in core_tb.v assembly --- hdl/tb/core_tb.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hdl/tb/core_tb.v b/hdl/tb/core_tb.v index 9960b74..da2bfed 100644 --- a/hdl/tb/core_tb.v +++ b/hdl/tb/core_tb.v @@ -83,7 +83,7 @@ initial begin mem_inst[84] = {12'h987, 5'd7, 3'b000, 5'd7, OP_IMM}; // addi x7, x7, 0x987 mem_inst[90] = {20'h00032, 5'd8, OP_AUIPC}; // auipc x8, 0x32 // 90*4 + 0x32000 = 0x32168 // mem_inst[96] = {12'd288, 5'd0, 3'b000, 5'd9, OP_JALR}; // jalr x9, x0, 72*4 // unconditional jump to index 72 = 288/4 - mem_inst[102] = {1'b0,10'd24,1'b0,8'b0, 3'b000, 5'd9, OP_JAL}; // jal x10, +24 // unconditional jump to index +12 = 24*2/4 + mem_inst[102] = {1'b0, 10'd12, 1'b0, 8'b0, 5'd9, OP_JAL}; // jal x10, +12 // unconditional jump to index +12 = 24*2/4 mem_inst[108] = {12'd4, 5'd0, 3'b000, 5'd2, OP_IMM}; // addi x11, x0, 4 // this should be skipped mem_inst[114] = {12'd5, 5'd0, 3'b000, 5'd2, OP_IMM}; // addi x12, x0, 5 mem_inst[120] = {12'd5, 5'd0, 3'b000, 5'd2, OP_IMM}; // addi x12, x12, 6