A very simple syntax check

Is it possible to give a warning if I write a time value without a space between the number and the unit?

clk <= not clk after 12ns;
-----------------------^

I frequently forget the space.

tools don't agree

Hi Jan-Willem,

Isn't it funny how some tools report different errors and warnings? ISim does not complain about this at all and Modelsim just warns. But since you ask about this feature, you probably use a tool that fails (gives an error) when you forget the space.

I've logged your request as ticket:929. We'll see if is as simple to implement as it seems ;-)

-- Philippe

Cadence is quite picky

I use Cadence incisive. In general it is very secure in what syntax it accepts.

ticket 929 fixed

ticket:929 was fixed in November 2010

Post new comment

The content of this field is kept private and will not be shown publicly.
By submitting this form, you accept the Mollom privacy policy.