Session 9 Verilog Programming
Session 9 Verilog Programming
VERILOG PROGRAMMING
Session - 9
INSTRUCTIONAL OBJECTIVES
LEARNING OUTCOMES
• Designs, which are described in HDL are independent of technology, very easy for designing and
debugging, and are normally more useful than schematics, particularly for large circuits.
Verilog supports a design at many levels of abstraction. The major three are −
1. Behavioral level
2. Register-transfer level
3. Gate level
• A number of facilities in Verilog relate to the management of simulation; starting and stopping of
simulation, selectively monitoring the activities, testing the design for timing constraints, etc., are
amongst them. Although a variety of such constructs is available in Verilog.
• Most of the behavioral modeling is done using two important constructs: initial and always. All the other
behavioral statements appear only inside these two structured procedure constructs. Switch level
modeling forms the basic level of modeling digital circuits.
• The switches are available as primitives in Verilog; they are central to design description at this level.
Basic gates can be defined in terms of such switches. By repeated and successive instantiation of such
switches, more involved circuits can be modeled – on the same lines as was done with the gate level
primitives.
(a) … $finish
(b) … $stop
(c) … $end
(d) … $close
Reference Books:
1. 1. Bob Zeidman, “Designing with FPGAs and CPLDs”, CMP Books, ISBN: 1-57820-112-8.
2. Stephen Brown and Zvonko Vranesic “Fundamentals of Digital Logic with Verilog Design”
McGraw-Hill.
3. Pak K. Chan, Samiha Mourad, “Digital Design Using Field Programmable Gate Array”,
Pearson Education – 2009
Sites and Web links:
1. https://archive.nptel.ac.in/courses/108/104/108104091/
2. http://www.referencedesigner.com/tutorials/verilog/verilog_01.php