Continue to Site

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.

What does the precision value in Verilog Timescale represent?

Status
Not open for further replies.

verma.ind

Junior Member level 2
Junior Member level 2
Joined
Mar 5, 2007
Messages
24
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,416
When we define `timescale 1ns/1ps
1ns represents the reference time and 1ps as precision value

This reference time is for simulation and delays, but
what that precision time represents in simulation and delays?

Thanks
 

nand_gates

Advanced Member level 3
Advanced Member level 3
Joined
Jul 19, 2004
Messages
899
Helped
175
Reputation
350
Reaction score
53
Trophy points
1,308
Activity points
7,037
timescale verilog

`timescale 1ns/1ps
means
Whatever times you mensioned in verilog code
will be taken in ns.
eg.
#22; //22 ns
Resolution of 1ps means
you can have
#0.001; // 0.001 ns / 1ps as smallest representation of the time.
#0.000123; // this means 0 ns
 

verma.ind

Junior Member level 2
Junior Member level 2
Joined
Mar 5, 2007
Messages
24
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,416
timescale in verilog

is this also related to sampling of input means if u have pulse of less than resolution time, then the simulator will not sample that value?
 

alam.tauqueer

Full Member level 2
Full Member level 2
Joined
Jun 19, 2007
Messages
127
Helped
5
Reputation
10
Reaction score
2
Trophy points
1,298
Activity points
2,005
verilog timescale

Yes exactly if u have pulse of less than resolution time, then the simulator will not sample that value ,resolution is the smallest time unit which you can see on the simulator.

Added after 3 minutes:

one example for your understanding

like we have to collect Rs100 and the smallest value of RS should be Rs 1.So if you give 50 paise you will noy count it in RS 100.
1ns/1ps is similar to 100/1
Hope you got the concept.
 

calm

Full Member level 4
Full Member level 4
Joined
Oct 17, 2005
Messages
216
Helped
9
Reputation
18
Reaction score
4
Trophy points
1,298
Activity points
2,156
`timescale verilog

1ns for reference time and 10ps for precision time
 

kushagrak

Member level 2
Member level 2
Joined
Feb 27, 2008
Messages
47
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,507
timescale 1ns 1ps

Thank's alot guys....I was wondering abt this qsn...from 6 months...now u people have cleared my doubt.

THANKS A LOT
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top