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
Bit select from 1-bit parameter causes error #603
The following code causes a Verilator error.
The error is:
It seems that Verilator assumes that a 1-bit wide parameter must be a scalar, rather than a 1-bit wide vector. Other simulators (e.g. VCS, Icarus) do not make this assumption and pass this code cleanly.
Please pull a test case from branch param-bit-sel at email@example.com:jeremybennett/verilator.git
Original Redmine Comment
Very surprising as "wire foo" isn't allowed to get "foo[ 0 ]". parameters inherit the type of the assignment, but the type is a bit. Anyhow.
Fixed in git towards 3.845.