Re: [myhdl-list] delays in VHDL conversion
Brought to you by:
jandecaluwe
From: Henry G. <he...@ca...> - 2015-02-08 22:39:46
|
On 08/02/15 22:22, Josy Boelen wrote: <snip> > Actually the converted code is wrong, the statements like: > constant lowTime: integer := 10; > wait for lowTime ns; > > are incorrect, they should either be: > constant lowTime: integer := 10; > wait for lowTime * 1.0 ns; > > or: > constant lowTime: time := 10.0 ns; > wait for lowTime ; > > Should be easy to fix in the MyHDL code. You mean in the conversion routines? The easiest way I can think of is to replace the "ns" string with "* 1.0 ns" here: https://bitbucket.org/jandecaluwe/myhdl/src/b07b52398020b3bd737d0b4f1574f0d94eefccb5/myhdl/conversion/_toVHDL.py?at=default#cl-970 No doubt that will break other things though? Is there a reason why there can't always be a multiplier (other than code neatness)? Henry |