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.

Explanation of timescale 1ns/1ps in Verilog

Status
Not open for further replies.

prshanth dk

Newbie level 1
Joined
Aug 29, 2005
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,288
please can anyone explain the use of writing
`timescale 1ns/1ps
in verilog
am in learning stage
regards

advance thnx
 

joc_06

Member level 2
Joined
Nov 28, 2003
Messages
51
Helped
7
Reputation
14
Reaction score
4
Trophy points
1,288
Activity points
478
timescale verilog

`timescale is used for specifying reference time unit for simulator.


example : `timescale 10ns/1ns

normally it is used in testbanch top level only and tells all subsequent hard coded delays how long to wait for etc.

#5 , now means wait for 50ns etc


google would tell you this
 

MRFGUY

Full Member level 1
Joined
Sep 16, 2003
Messages
98
Helped
9
Reputation
18
Reaction score
3
Trophy points
1,288
Activity points
1,049
timescale 1ns 1ps

mean :

timescale <reference_time>/ <precision>

Your simulation will run until reference_time (1ns) with precision mention in <precision> (1ps).
 

nand_gates

Advanced Member level 3
Joined
Jul 19, 2004
Messages
893
Helped
175
Reputation
350
Reaction score
51
Trophy points
1,308
Activity points
6,843
time scale in verilog

`timescale 1ns/1ps

means ur time scale is ns with resolution OR least count of 1ps

#1 ; // 1ns delay
#0.001; // 0.001 ns this is the minimum delay you can have with this time scale!
#0.0001; // this will give 0 ns delay!!

Hope these example helps you understand the verilog timescale!!
 

wjx197733

Member level 2
Joined
Sep 21, 2004
Messages
53
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
476
timescale in verilog

OK, I have the same question, and now, I see
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top