Logic Gate Implementation in Verilog HDL
I. LESSON TITLE
1. Logic Gates
2. Advanced Logic Gates
II. LESSON OVERVIEW
The lesson will discuss the different logic gates, both basic and advanced logic gates.
Also, the implementation of logic gates using Verilog HDL
III. DESIRED LEARNING OUTCOMES
At the end of the lesson, the students should be able to:
Understand the basic design prospective og logic gates and interconnects
Design the logic gates using Verilog HDL
IV. LESSON CONTENT
The logic gate is the foundation of a digital system. As an input, one of the binary signals
is fed into the logic gate, which produces a single output. Various logic circuits can be
designed using logic gates, transistors, resistors, and so on. The signals applied to a logic
gate's input and output terminals can be of logic level HIGH or logic level LOW. The logic
gate's function is expressed in terms of the truth table. The truth table contains all of the
possible input variable and output variable combinations. The number of possible
combinations N of binary input to a logic gate is:
𝑁 = 2𝑛
Where: n = number of
bits
Electronic circuit elements that perform Boolean algebraic functions are known as logic
gates. There are seven logic gates in total: AND, NAND, OR, NOR, NOT, EX-OR, EX-NOR,
three of which are basic logic gates: AND, OR, NOT, and two of which are universal logic
gates: NAND and NOR. These gates are known as universal gates because they can be
used to create any logic gate.
BASIC LOGIC GATES
1. AND Gate
The AND gate is a logic circuit whose output is 1, i.e., logic level HIGH when all the input
variables are at level 1, i.e., at logic level HIGH
, Truth Table for AND Gate
2. OR Gate
OR gate is a type of logic gate, where output is HIGH i.e., logic 1 when at least one input
is HIGH i.e., logic 1
Truth Table of OR gate
3. NOT Gate
A logic gate is said to act as NOT gate when it changes the applied input logic level to
the opposite logic level. It is also called an inverting buffer.
Truth Table for NOT Gate
I. LESSON TITLE
1. Logic Gates
2. Advanced Logic Gates
II. LESSON OVERVIEW
The lesson will discuss the different logic gates, both basic and advanced logic gates.
Also, the implementation of logic gates using Verilog HDL
III. DESIRED LEARNING OUTCOMES
At the end of the lesson, the students should be able to:
Understand the basic design prospective og logic gates and interconnects
Design the logic gates using Verilog HDL
IV. LESSON CONTENT
The logic gate is the foundation of a digital system. As an input, one of the binary signals
is fed into the logic gate, which produces a single output. Various logic circuits can be
designed using logic gates, transistors, resistors, and so on. The signals applied to a logic
gate's input and output terminals can be of logic level HIGH or logic level LOW. The logic
gate's function is expressed in terms of the truth table. The truth table contains all of the
possible input variable and output variable combinations. The number of possible
combinations N of binary input to a logic gate is:
𝑁 = 2𝑛
Where: n = number of
bits
Electronic circuit elements that perform Boolean algebraic functions are known as logic
gates. There are seven logic gates in total: AND, NAND, OR, NOR, NOT, EX-OR, EX-NOR,
three of which are basic logic gates: AND, OR, NOT, and two of which are universal logic
gates: NAND and NOR. These gates are known as universal gates because they can be
used to create any logic gate.
BASIC LOGIC GATES
1. AND Gate
The AND gate is a logic circuit whose output is 1, i.e., logic level HIGH when all the input
variables are at level 1, i.e., at logic level HIGH
, Truth Table for AND Gate
2. OR Gate
OR gate is a type of logic gate, where output is HIGH i.e., logic 1 when at least one input
is HIGH i.e., logic 1
Truth Table of OR gate
3. NOT Gate
A logic gate is said to act as NOT gate when it changes the applied input logic level to
the opposite logic level. It is also called an inverting buffer.
Truth Table for NOT Gate