Skip to content

Unique case isn't unique in ibex_alu.sv #845

@rswarbrick

Description

@rswarbrick

On the head of master (7dafdf64), run the following command:

cd dv/uvm/core_ibex
make WAVES=1 VERBOSE=1 ISS=spike COV=1 SEED=26187 TEST=riscv_arithmetic_basic_test

Once this has finished, have a look at one of the simulation logs. For example, out/seed-26187/rtl_sim/riscv_arithmetic_basic_test.0/sim.log (attached). You'll see VCS warning about incorrect unique case:

Warning-[RT-MTOCMUCS] More than one condition match in statement
/src/lr/ibex/rtl/ibex_alu.sv, 78
  More than one condition matches are found in 'unique case' statement inside 
  core_ibex_tb_top.dut.u_ibex_core.ex_block_i.alu_i, at time 32370000ps.
  
  Line number 79 and 80 are overlapping.

Rather upsettingly, this doesn't actually cause the test to fail. But it does suggest a problem with the RTL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions