Welcome to EDAboard.com

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.

how to use realtime in vhdl

Status
Not open for further replies.

raziyeh94

Junior Member level 1
Joined
Mar 26, 2015
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
122
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
 

K-J

Advanced Member level 2
Joined
Jan 26, 2012
Messages
658
Helped
308
Reputation
620
Reaction score
301
Trophy points
1,343
Activity points
7,053
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"

Kevin Jennings
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
48,418
Helped
14,252
Reputation
28,765
Reaction score
12,942
Trophy points
1,393
Location
Bochum, Germany
Activity points
280,188
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.
 

raziyeh94

Junior Member level 1
Joined
Mar 26, 2015
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
122
thanks a lot.my plroblem solved with your help.:-D.goodluck.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top