Minor RVFI bugfix

This commit is contained in:
Clifford Wolf 2016-11-24 15:23:33 +01:00
parent 117586ff19
commit fd38f876e1
1 changed files with 1 additions and 1 deletions

View File

@ -1861,7 +1861,7 @@ module picorv32 #(
`ifdef RISCV_FORMAL `ifdef RISCV_FORMAL
always @(posedge clk) begin always @(posedge clk) begin
rvfi_valid <= launch_next_insn && dbg_valid_insn; rvfi_valid <= resetn && launch_next_insn && dbg_valid_insn;
rvfi_opcode <= dbg_insn_opcode; rvfi_opcode <= dbg_insn_opcode;
rvfi_rs1 <= dbg_rs1val_valid ? dbg_insn_rs1 : 0; rvfi_rs1 <= dbg_rs1val_valid ? dbg_insn_rs1 : 0;
rvfi_rs2 <= dbg_rs1val_valid ? dbg_insn_rs2 : 0; rvfi_rs2 <= dbg_rs1val_valid ? dbg_insn_rs2 : 0;