You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Debugging a timing issue I noticed that NVC accepts negative values in delayed assignments and waits, and it actually works as well.
This is pretty cool, modelsim and ghdl always complain on this, but I'm not sure this is according to the standard.
In LRM 10.5.2.2, paragraph two, last sentence it specifies "It is an error if the time expression in a waveform element evaluates to a
negative value."
This sentence is also repeated for waits in 10.2 p146 3rd last paragraph, last sentence.
There was already some code to check this at elaboration time but it didn't work if the wait statement was in the top-level entity (don't ask). It's fixed by a combination of f62347a and d079ff5 (which also adds a run-time test in case the delay is not a constant).
Debugging a timing issue I noticed that NVC accepts negative values in delayed assignments and waits, and it actually works as well.
This is pretty cool, modelsim and ghdl always complain on this, but I'm not sure this is according to the standard.
In LRM 10.5.2.2, paragraph two, last sentence it specifies "It is an error if the time expression in a waveform element evaluates to a
negative value."
This sentence is also repeated for waits in 10.2 p146 3rd last paragraph, last sentence.
The text was updated successfully, but these errors were encountered: