Documente Academic
Documente Profesional
Documente Cultură
Verilog® HDL
Timing and Delays
Maziar Goudarzi
Today Program
General syntax
#(rise_val, fall_val, turnoff_val)
#(min:typ:max, min:typ:max, min:typ:max)
Examples:
and #(5) a1(out, i1, i2);
and #(4, 6) a2(out, i1, i2);
and #(3, 4, 5) a2(out, i1, i2);
and #(1:2:3, 4:5:6, 5:6:7) a2(out, i1, i2);
Examples
wire #10 out = in1 & in2; wire out;
assign #10 out = in1 & in2;
specify block
Assign pin-to-pin delays
Define specparam constants
Setup timing checks in the design
specparam constants
Similar to parameter, but only inside specify block
Recommended to be used instead of hard-coded delay
numbers
Handling x transitions
Pessimistic approach
Transition to x: minimum possible time
Transition from x: maximum possible time
Timing Checks
A number of system tasks defined for this
$setup: checks setup-time of a signal before
an event
$hold: checks hold-time of a signal after an
event
$width: checks width of pulses
Homework 9
Chapter 10:
All exercises
Due date: Sunday, Day 11th