Cleanup bogus use

This commit is contained in:
Victor Timofei 2022-01-11 21:46:04 +02:00
parent 6c08931ddd
commit 0f3b747dc7
Signed by: vtimofei
GPG Key ID: B790DCEBE281403A
1 changed files with 1 additions and 3 deletions

View File

@ -79,7 +79,7 @@
$is_r_instr || $is_i_instr || $is_u_instr || $is_j_instr; $is_r_instr || $is_i_instr || $is_u_instr || $is_j_instr;
$imm_valid = $is_i_instr || $is_s_instr || $is_b_instr || $is_u_instr || $is_j_instr; $imm_valid = $is_i_instr || $is_s_instr || $is_b_instr || $is_u_instr || $is_j_instr;
`BOGUS_USE($rd $rd_valid $rs1 $rs1_valid $rs2 $rs2_valid $func3 $func3_valid $imm_valid $opcode) `BOGUS_USE($func3_valid $imm_valid)
$imm[31:0] = $is_i_instr ? { {21{$instr[31]}}, $instr[30:20] } : $imm[31:0] = $is_i_instr ? { {21{$instr[31]}}, $instr[30:20] } :
$is_s_instr ? { {21{$instr[31]}}, $instr[30:25], $instr[11:7] } : $is_s_instr ? { {21{$instr[31]}}, $instr[30:25], $instr[11:7] } :
@ -100,8 +100,6 @@
$is_addi = $dec_bits ==? 11'bx_000_001_0011; $is_addi = $dec_bits ==? 11'bx_000_001_0011;
$is_add = $dec_bits == 11'b0_000_011_0011; $is_add = $dec_bits == 11'b0_000_011_0011;
`BOGUS_USE($imm $is_beq $is_bne $is_blt $is_bge $is_bltu $is_bgeu $is_addi $is_add)
// Assert these to end simulation (before Makerchip cycle limit). // Assert these to end simulation (before Makerchip cycle limit).
*passed = 1'b0; *passed = 1'b0;
*failed = *cyc_cnt > M4_MAX_CYC; *failed = *cyc_cnt > M4_MAX_CYC;