diff --git a/id_stage.sv b/id_stage.sv index b88fd6a7..3872f9f8 100644 --- a/id_stage.sv +++ b/id_stage.sv @@ -279,10 +279,10 @@ module id_stage // compressed instruction decoding compressed_decoder compressed_decoder_i ( - .instr_i ( instr_rdata_i ), - .instr_o ( instr ), + .instr_i ( instr_rdata_i ), + .instr_o ( instr ), .is_compressed_o ( compressed_instr_o ), - .illegal_instr_o ( illelgal_c_insn ) + .illegal_instr_o ( illegal_c_insn ) ); diff --git a/riscv_core.sv b/riscv_core.sv index 33de23b9..3e78fe67 100644 --- a/riscv_core.sv +++ b/riscv_core.sv @@ -776,8 +776,7 @@ module riscv_core $sformat(fn, "trace_core_%h.log", core_id_i); $display("[TRACER] Output filename is: %s", fn); f = $fopen(fn, "w"); - $fwrite(f, "%19s\t%6s\t%10s\t%10s\t \t%s\n", "Time", "Cycles", "PC", "Instr", "Mnemonic"); - //$fwrite(f, "Time\tCycles\tPC\tInstruction\n"); + $fwrite(f, "%20s\t%6s\t%10s\t%10s\t \t%s\n", "Time", "Cycles", "PC", "Instr", "Mnemonic"); end final @@ -807,7 +806,7 @@ module riscv_core $fwrite(f, "%t\t%6d\t0x%h\t", $time, cycles, pc); if (compressed) - $fwrite(f, "0x %4h\tC\t", id_stage_i.instr_rdata_i[15:0]); + $fwrite(f, " 0x%4h\tC\t", id_stage_i.instr_rdata_i[15:0]); else $fwrite(f, "0x%h\tI\t", instr);