Verilog Quick Start - Practical Guide to Simulation & Synthesis in Verilog (3rd Ed.)
Delays in Verilog
-
Upload
pamela-green -
Category
Documents
-
view
88 -
download
4
description
Transcript of Delays in Verilog
![Page 1: Delays in Verilog](https://reader033.fdocuments.us/reader033/viewer/2022061500/568132c1550346895d99835a/html5/thumbnails/1.jpg)
DELAYS IN VERILOG
![Page 2: Delays in Verilog](https://reader033.fdocuments.us/reader033/viewer/2022061500/568132c1550346895d99835a/html5/thumbnails/2.jpg)
Introduction
Delays are crucial in REAL simulations Post-synthesis simulation Post-layout simulation
FPGA counter-part: Post-P&R simulation Delay Models
Represent different physical concepts Two most-famous models
Inertial delay Transport delay
![Page 3: Delays in Verilog](https://reader033.fdocuments.us/reader033/viewer/2022061500/568132c1550346895d99835a/html5/thumbnails/3.jpg)
DELAY MODELS
Delays in Verilog
![Page 4: Delays in Verilog](https://reader033.fdocuments.us/reader033/viewer/2022061500/568132c1550346895d99835a/html5/thumbnails/4.jpg)
Delay ModelsInertial Delay
The inertia of a circuit node to change value
Abstractly models the RC circuit seen at the node
Different types Input inertial delay Output inertial delay
![Page 5: Delays in Verilog](https://reader033.fdocuments.us/reader033/viewer/2022061500/568132c1550346895d99835a/html5/thumbnails/5.jpg)
Delay ModelsTransport Delay Represents the propagation time of
signals from module inputs to its outputs Models the internal propagation delays
of electrical elements
![Page 6: Delays in Verilog](https://reader033.fdocuments.us/reader033/viewer/2022061500/568132c1550346895d99835a/html5/thumbnails/6.jpg)
DELAY TYPES
Delaysin Verilog
![Page 7: Delays in Verilog](https://reader033.fdocuments.us/reader033/viewer/2022061500/568132c1550346895d99835a/html5/thumbnails/7.jpg)
Delay Types
Rise Delay Fall Delay Turn-Off Delay Min/Typ/Max Delay values
![Page 8: Delays in Verilog](https://reader033.fdocuments.us/reader033/viewer/2022061500/568132c1550346895d99835a/html5/thumbnails/8.jpg)
DELAYS INGATE-LEVEL MODELING
Delaysin Verilog
![Page 9: Delays in Verilog](https://reader033.fdocuments.us/reader033/viewer/2022061500/568132c1550346895d99835a/html5/thumbnails/9.jpg)
Delays inGate-Level Modeling
Delay are shown by # sign in all verilog modeling levels
Inertial rise delay Inertial fall delay Inertial turn-off delay
and #(rise_val, fall_val, turnoff_val) a(out,in1, in2)
![Page 10: Delays in Verilog](https://reader033.fdocuments.us/reader033/viewer/2022061500/568132c1550346895d99835a/html5/thumbnails/10.jpg)
Delays inGate-Level Modeling (cont’d)
If no delay specified Default value is zero
If only one value specified It is used for all three delays
If two values specified They refer respectively to rise and fall
delays Turn-off delay is the minimum of the two
![Page 11: Delays in Verilog](https://reader033.fdocuments.us/reader033/viewer/2022061500/568132c1550346895d99835a/html5/thumbnails/11.jpg)
Delays inGate-Level Modeling (cont’d)
Min/Typ/Max Values Another level of delay control in Verilog Each of rise/fall/turnoff delays can have
min/typ/max valuesnot #(min:typ:max, min:typ:max, min:typ:max) n(out,in)
Only one of Min/Typ/Max values can be used in the entire simulation run It is specified at start of simulation, and depends to
the simulator used Typ delay is the default
![Page 12: Delays in Verilog](https://reader033.fdocuments.us/reader033/viewer/2022061500/568132c1550346895d99835a/html5/thumbnails/12.jpg)
DELAYS INDATAFLOW MODELINGDelaysin Verilog
![Page 13: Delays in Verilog](https://reader033.fdocuments.us/reader033/viewer/2022061500/568132c1550346895d99835a/html5/thumbnails/13.jpg)
Delays inDataflow Modeling
Regular Assignment Delaysassign #delay out = in1 & in2;
As in Gate-Level Modeling the delay is output-inertial delay
![Page 14: Delays in Verilog](https://reader033.fdocuments.us/reader033/viewer/2022061500/568132c1550346895d99835a/html5/thumbnails/14.jpg)
Delays inDataflow Modeling (cont’d)
Implicit Continuous Assignment Delaywire #delay out = in1 & in2;
![Page 15: Delays in Verilog](https://reader033.fdocuments.us/reader033/viewer/2022061500/568132c1550346895d99835a/html5/thumbnails/15.jpg)
DELAYS INBEHAVIORAL MODELING
Delaysin Verilog
![Page 16: Delays in Verilog](https://reader033.fdocuments.us/reader033/viewer/2022061500/568132c1550346895d99835a/html5/thumbnails/16.jpg)
Delay in Behavioral Modeling
![Page 17: Delays in Verilog](https://reader033.fdocuments.us/reader033/viewer/2022061500/568132c1550346895d99835a/html5/thumbnails/17.jpg)
Today Summary
Delays Models
Inertial/Transport Types
Rise/Fall/Turn-off Min/Typ/Max Values
Delays in Verilog Gate-Level Modeling Dataflow Modeling Behavioral Modeling