Issue #406
delayed assignment of unsized constant fails
| Status: | Duplicate | Start date: | 10/26/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | Jeremy Bennett | % Done: | 0% |
|
| Category: | Unsupported | |||
| Target version: | - |
Description
The following causes a syntax error:
always @(*) y = #4 'h1;
The error message is:
$ %Error: t/t_delayed_unsigned_const.v:23: syntax error, unexpected ';', expecting TYPE-IDENTIFIER %Error: Exiting due to 1 warning(s) %Error: Command Failed /home/jeremy/tools/verilator/verilator/verilator_bin --prefix Vt_delayed_unsigned_const --x-assign unique -cc -Mdir obj_dir/t_delayed_unsigned_const --debug-check -f input.vc t/t_delayed_unsigned_const.v
There is an easy workaround (put in the size).
Regression test case attached. Tested with Verilator 3.824.
History
Updated by Wilson Snyder over 1 year ago
- Category set to Unsupported
- Status changed from New to Feature
This is a duplicate of bug256.
Updated by Wilson Snyder over 1 year ago
- Assignee set to Byron Bradley
Updated by Wilson Snyder over 1 year ago
- Assignee changed from Byron Bradley to Jeremy Bennett
Fingers slipped and misassigned.
Updated by Wilson Snyder 4 months ago
- Status changed from Feature to Duplicate
Closing as duplicate of bug256.
Also available in: Atom
![[logo]](/img/veripool_small.png)