Beruflich Dokumente
Kultur Dokumente
Lecture - 7
V. Kamakoti and Shankar Balachandran
You may sometime need root permission for the same. If you
do not have the same then
q1
q0
q3
q2
clock
TFF
tff0
reset
tff1
tff2
tff3
The Design
The Instructor should key in line-by-line the code
in Fig 2-3, pg. 55, in the book Verilog HDL, by
Samir Palnitkar, Second edition, 2007 and
explain its functionality.
This is the equivalent HDL representation of the
counter shown in the previous slide
The design is complete and now you have to
test your design. It is similar to forming the
counter on a bread board and now you give
inputs and study the output
New things
You should have learnt the following from the
counter design HDL code
Always construct
For defining a sequential element - namely, the Flipflop
For defining a clock with a given time period
Initial construct
For defining the test inputs along with the timing
$monitor
Simulator directives for debugging
Equivalent to using an oscilloscope for observing waveforms
Salient Features
Concurrency constructs
Easy verification capabilities of the
specification compare it with breadboard
technique
The design part convertible to gates by
feeding the HDL code to a synthesis tool.
Thank You