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
Constant function evaluator incorrect on return of function var #1467
Author Name: Roman Popov
Original Assignee: Wilson Snyder (@wsnyder)
Trying to debug the root cause of multiple errors. Here is a minimal example I've managed to extract:
So Verilator incorrectly evaluates RAM_BLOCK_INDEX to 0.
verilator --lint-only -sv -top-module top top.sv
Original Redmine Comment
Well, this one is entertaining. Basically this:
The function is already using index_calc as the variable, so this return which should be trivial hits a bug.
Will get to a fix shortly, but you can comment out the return for the moment.