Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Generate IF conditional does not correctly handle constant selections #492
The patch in Issue 413 to allow short-circuiting of conditionals introduced a bug in evaluating generate IF conditionals that yield a constant selection. For example
where SIZE and MASK are parameters with values 2 and 2'h11 respectively.
Please pull a patch for this and an associated regression test from https://github.com/jeremybennett/verilator/tree/gen-if-const.