Unit 2 - Gate Level Modelling
Unit 2 - Gate Level Modelling
Modelling
UNIT 2
Introduction
• Digital designs are typically done at a higher level of abstraction, such
as RTL.
• However, for smaller, deterministic circuits, it is often intuitive to use
gate-level modeling.
• Gate-level modeling involves gates and has a one-to-one relationship
between hardware schematics and Verilog code.
What is Gate Level Modeling?
• Gate-level modeling is a lower-level approach in digital design.
• It uses combinational elements like AND and OR gates.
• It provides a direct translation from a hardware schematic to Verilog
code.
Schematic Diagram
• A schematic diagram is a representation of a system's elements using
abstract, graphic symbols.
• It replaces realistic pictures with symbolic representations of
components.
• Schematic diagrams are widely used in electronics to visualize circuits.
Verilog as a Hardware Description Language
(HDL)
• Verilog is standardized as IEEE 1364.
• It is a hardware description language (HDL) used to model electronic
systems.
• Verilog is mainly used for design and verification of digital circuits at
the register-transfer level (RTL) of abstraction.
Primitives in Verilog
• Verilog provides support for basic logic gates known as primitives.
• These primitives can be instantiated like modules because they are
already predefined.
• Primitives simplify gate-level modeling by allowing easy integration of
basic logic gates into your Verilog code
Example Verilog Code
• Below is an example Verilog code for a 2-input AND gate: