Forum Discussion
Altera_Forum
Honored Contributor
17 years ago --- Quote Start --- syncResetClkCNT <=# tDLY (clkCNT == NUM_CLK_READ) ? 1 : 0;Warning: truncated value with size 16 to match size of targer --- Quote End --- I would expect a warning value with size 32 in this case, cause integer values have 32 rather than 16 as default size. If you examine Verilog code examples thorougly, you should notice that the bit width field of sized constants usually matches the target size.
regSysDX <=# tDLY 4'h0; would be a matching assignment. Generally, the compiler also accepts unsized constants as in your second example, but you will get a warning then, if it isn't disabled. By the way, the# tDLY is ignored in synthesis, it's functional in ModelSim only,