1.1_Hardware_Descriptive_language[1]
1.1_Hardware_Descriptive_language[1]
Dr. S.Karthick
Associate Professor - EECE
To be an exceptional
knowledge-driven institution
advancing on a culture of
honesty & compassion to make
a difference to the world.
Build a dynamic Nurture valuable futures with
global perspectives for our
application-oriented students by helping them find
education ecosystem their ikigai.
immersed in holistic
development.
Monday EECE3051
Wednesday
Thursday EECE3051
Friday EECE3051P
VLSI Design Methodologies: Computer Aided Design: Hardware description languages, Verilog
description of combinational circuits, Verilog modules, Verilog assignments, procedural assignments,
modeling flip-flops using always block, delays in Verilog, compilation, simulation, and synthesis of Verilog
code, Verilog data types and operators, simple synthesis examples, Verilog models for multiplexers,
modeling registers, counters and finite state machines using Verilog always statements, behavioral and
structural Verilog, testing a Verilog model
.
Syllabus
UNIT 2 Programmable Logic Devices 6 hours
Programmable Logic Devices: Simple programmable logic devices (SPLDs), Complex programmable logic
devices (CPLDs), Field programmable gate arrays (FPGAs), implementing functions in FPGAs
TextBooks:
1. Charles H. Roth, Lizy Kurian John, ByeongKil Lee, Digital Systems Design using Verilog, 1/e, Cengage
Learning, 2016
2. Douglas A, Pucknell, Kamran Eshraghian, Essentials of VLSI Circuits and Systems, 1/e, Prentice Hall,
2012.
3. Weste, Harris, CMOS VLSI Design, 4/e, Pearson Education, 2014
Syllabus
Reference Books :
1. Kang, Leblibici, CMOS Digital Integrated Circuits, 3/e, Tata McGraw Hill, 2001
2. Jan M. Rabaey, Digital Integrated Circuits, 2/e, Pearson Education, 2002
Assessments
1. Mid Exams: 30% [ One Mid Exam ]
[Dates: 10 February 2025 to 14 February 2025] [ Unit 1-3]
4. Final Examination:30%
[Dates: 9 April 2025 - 28 April 2025]
Integrated Circuits
Integrated Circuits(IC):
Advantages of IC:
• Extremely small in size
• Low power consumption
• Improved Speed
• Increased Reliability
• Lesser weight
Types of Integration
Level of Number of Devices Examples
Integration
Small-scale less than 10 Logic gates(AND,OR,NAND)
integration (SSI)
Medium-scale 10 to 100 FF, Mux, DeMux etc
integration(MSI)
Large scale 100 to 10,000 PLD
integration(LSI)
Very large scale 10,000 to 100,000 CPLD
integration(VLSI)
Ultra large-scale 100,000 to 1,000,000 8 & 16 bit microprocessor
integration(ULSI)
Giga—Scale > 1,000,000 Pentium IV Processor
Integration(GSI)
VLSI?
Very Large Scale Integration(VLSI):
Application of VLSI:
• Telecommunication: 5G…
➢ HDLs serve the purpose of simulating the circuit and verifying its response
Top-down methodology
➢ In 2001, IEEE 1364 – 2001 was approved and this is the latest
Verilog Standard
Design Methodology
Verilog can be designed based on
1. Based on Design Hierarchy
2. Based on Abstraction
1.Based on Design Hierarchy
a) Top down Methodology
Design from top block to leaf cell
Design Methodology
Example: To design 4-Bit Ripple carry adder
Design Methodology
b) Top down Methodology
Design from leaf cell to top block
Design Methodology
2.Based on Abstraction
Design Methodology
Based on Abstraction
Behavioral or Algorithmic level
❑This is the highest level of abstraction provided by Verilog HDL.
❑A module can be implemented in terms of the desired design algorithm
without concern for the hardware details.
❑It specifies the circuit in terms of its expected behavior.
S[1] S[0] O
0 0 i[0]
0 1 i[1]
1 0 i[2]
1 1 i[3]
Dataflow level
❑ It is the next higher level of abstraction.
❑ The designer should be aware of data flow of the design
❑This style is similar to logical equations
❑The specification is comprised of expressions made up of input
signals and assigned to outputs
0=S[1]’S[2]’i[0] + S[1]’S[2]i[1] + S[1]S[2]’i[2] + S[1]S[2]i[3]
Gate level or Structural level
❑The module is implemented in terms of logic gates and
interconnections between these gates.
❑It resembles a schematic drawing with components connected with
signals.
❑Verilog has a predefined set of logic gates known as primitives
Switch level
❑This is the lowest level of abstraction provided by Verilog.
❑A module can be implemented in terms of transistors, storage
nodes, and the interconnections between them
❑In Verilog HDL transistors are known as Switches that can either
conduct or open
Verilog Module
33
Verilog Module
✓A module is a basic building block that declares the input and output
✓All the input and output signals are listed in the module statement
34
Module Structure
35
Module declaration:
module module-name (module interface list); • Verilog program
[list-of-interface-ports] begins with a Keyword
– “module”
...
• Used to declare the
[port-declarations]
three ports
... 1. Input port-to entry
[functional-specification-of-module] the inputs
... 2. Output port-to entry
endmodule the outputs
3. Inout port-to entry
both inputs and
outputs
Example
37
Keywords and Identifiers
Keywords
✓Keywords are special identifiers reserved to define the language constructs. Keywords
are in lowercase
✓Keywords signifies an activity to be carried out or terminated
Example:
38
Identifiers
✓Identifiers are names given to objects so that they can be referenced in the
design.
✓Identifiers are made up of alphanumeric characters, the underscore ( _ ), or the
dollar sign ( $ ).
✓Identifiers are case sensitive.
✓ Identifiers start with an alphabetic character or an underscore. They cannot
start with a digit or a $ sign
Example:
39
Verilog Modelling
40
Gate level or Structural level Modeling
➢The module is implemented in terms of logic gates and interconnections
between these gates.
➢It resembles a schematic drawing with components connected with signals.
➢Verilog has a predefined set of logic gates known as primitives
Gate level or Structural level Modeling
In gate level, the circuit is described in terms of gates (e.g., AND gate,
NAND gate).
There are two classes of gate primitives:
1. Single input gate primitives
2. Multiple input gate primitives
Syntax:
1. AND Gate
and (output , input, input);
Example:
and (c, a, b);
2.OR Gate
or (output , input, input);
❖Example:
or (c, a, b);
Do and Don’t do
❖Example:
and (c, a, b);
❖Example:
AND (c, a, b);
❖Example:
and (C, A, B);
❖ Keyword word / Syntax word like and, or, nand, nor, not, xor, xnor – all
should be in sentence case.
❖ No restrictions for I/O declarations.
Dataflow level Modeling
✓ It is the next higher level of abstraction.
✓ The designer should be aware of data flow of the design
✓This style is similar to logical equations
✓The specification is comprised of expressions made up of input signals and assigned
to outputs
0=S[1]’S[2]’i[0] + S[1]’S[2]i[1] + S[1]S[2]’i[2] + S[1]S[2]i[3]
Dataflow level Modeling
❑ Here all operation on signal and variables are represented by assignments
(defines the continuous functioning of the concerned block).
❑In dataflow modeling, most of the design is implemented using continuous
assignments, which are used to drive a value onto a net (nodes in a circuit).
Bit-wise operator
❖Syntax : AND Gate
assign output = input & input;
❖Example:
assign c = a & b;
❖Syntax : OR Gate
assign output = input | input;
❖Example:
assign c = a | b;
Programs
48
Gate Level Modeling-AND Gate
55