Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
hello.
i want to store time as real in vhdl.how do i do it?for example delay:time:=2.3ps in vhdl. vhdl round off it to 2ps but i want 2.3ps in myopratins.
tnx
This will be a simulator setting so how you do it will depend on what simulator you are using. What you want to change is the minimum time step that the simulator will recognize. It appears that you are using (perhaps it is the default) a resolution of 'ps' which means that any fractional picoseconds will get truncated, hence 2.3 ps becomes 2 ps. You should be able to change the default time unit to something smaller like femtoseconds (fs) with a command line switch. With Modelsim, this would be done like this "vsim ... -t fs"
Apart from allowing different scale factors, the time type is derived from a 32 bit integer in standard.vhd
In so far you have to write 2300 fs instead of 2.3 ps.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.