Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
27 views
16 pages
Hardware Description Language
Uploaded by
ökkeş kurt
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF, TXT or read online on Scribd
Download
Save
Save Laboratory_Note_1 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
27 views
16 pages
Hardware Description Language
Uploaded by
ökkeş kurt
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF, TXT or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save Laboratory_Note_1 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 16
Search
Fullscreen
HARDWARE DESCRIPTION
LANGUAGE
Digital Design: With an Introduction to the Verilog HDL, 5e
M. Morris Mano • Michael D. Ciletti
Copyright ©2013 by Pearson Education, Inc., All rights reserved.
• Manual methods for designing logic circuits are feasible only when
the circuit is small.
• For anything else designers use computer-based design tools.
• A hardware description language (HDL) is a computer-based language
that describes the hardware of digital systems in a textual form.
• It resembles an ordinary computer programming language, such as C,
but is specifically oriented to describing hardware structures and the
behavior of logic circuits.
Module Declaration
• The language reference manual for the Verilog HDL presents a syntax
that describes precisely the constructs that can be used in the
language.
• Keywords are predefined lowercase identifiers that define the
language constructs. Examples of keywords are module, endmodule,
input, output, wire, and, or, and not.
• For clarity, keywords will be displayed in boldface in the text in all
examples of code and wherever it is appropriate to call attention to
their use.
Module Declaration
• Any text between two forward slashes ( // ) and the end of the line is
interpreted as a comment and will have no effect on a simulation
using the model. Multiline comments begin with /*and terminate
with */.
• Verilog is case sensitive, which means that uppercase and lowercase
letters are distinguishable.
• The term module refers to the text enclosed by the keyword pair
module
...
endmodule.
Module Declaration
• A module is the fundamental descriptive unit in the Verilog language.
• It is declared by the keyword module and must always be terminated
by the keyword endmodule.
• The keyword module starts the declaration (description) of the
module; the last line completes the declaration with the keyword
endmodule.
• The keyword module is followed by a name and a list of ports. In
general, we choose meaningful names for modules.
Module Declaration
• The port list of a module is the interface between the module and its
environment.
• The logic values of the inputs to a circuit are determined by the
environment; the logic values of the outputs are determined within
the circuit.
• The port list is enclosed in parentheses, and commas are used to
separate elements of the list.
• The statement is terminated with a semicolon (;).
• The keywords input and output specify which of the ports are inputs
and which are outputs. Internal connections are declared as wires.
Module Declaration
• The structure of circuit is specified by a list of (predefined) primitive
gates, each identified by a descriptive keyword (and, not, or).
• The elements of the list are referred to as instantiations of a gate,
each of which is referred to as a gate instance.
• Each gate instantiation consists of an optional name (such as G1, G2,
etc.).
• The output of a primitive gate is always listed first, followed by the
inputs. But the inputs and outputs of a module may be listed in any
order.
Gate Delays
• All physical circuits exhibit a propagation delay between the transition
of an input and a resulting transition of an output.
• When an HDL model of a circuit is simulated, it is sometimes
necessary to specify the amount of delay from the input to output.
• In Verilog, the propagation delay of a gate is specified in terms of
time units and by the symbol #.
• The association of a time unit with physical time is made with
the `timescale compiler directive.
• Such a directive is specified before the declaration of a module and
applies to all numerical values of time in the code that follows.
`timescale 1ns/100ps
Gate Delays
• The first number specifies the unit of measurement for time delays.
The second number specifies the precision for which the delays are
rounded off, in this case to 0.1 ns.
Gate Delays
Test Bench
• In order to simulate a circuit with an HDL, it is necessary to apply
inputs to the circuit so that the simulator will generate an output
response.
• An HDL description that provides the stimulus to a design is called a
test bench.
• In its simplest form, a test bench is a module containing a signal
generator and an instantiation of the model that is to be verified.
• Note that the test bench has no input or output ports, because it
does not interact with its environment.
Test Bench
Test Bench
• Within the test bench, the inputs to the circuit are declared with
keyword reg and the outputs are declared with the keyword wire.
• Every instantiation of a module must include a unique instance name.
• Note that using a test bench is similar to testing actual hardware by
attaching signal generators to the inputs of a circuit and attaching
probes (wires) to the outputs of the circuit.
Test Bench
• Hardware signal generators are not used to verify an HDL model: The
entire simulation exercise is done with software models executing on
a digital computer under the direction of an HDL simulator.
• The waveforms of the input signals are abstractly modeled by Verilog
statements specifying waveform values and transitions.
• The initial keyword is used with a set of statements that begin
executing when the simulation is initialized; the signal activity
associated with initial terminates execution when the last statement
has finished executing.
• The initial statements are commonly used to describe waveforms in a
test bench.
Test Bench
• The set of statements to be executed is called a block statement and
consists of several statements enclosed by the keywords begin and
end.
• A second initial statement uses the $finish system task to specify
termination of the simulation. If a statement is preceded by a delay
value (e.g., #100), the simulator postpones executing the statement
until the specified time delay has elapsed.
You might also like
DAS Mercedes Ben Key PDF
PDF
100% (2)
DAS Mercedes Ben Key PDF
96 pages
3.8112 Board Baumuller Manual
PDF
100% (1)
3.8112 Board Baumuller Manual
488 pages
Module Instantiation and Test Benches: - Professor
PDF
No ratings yet
Module Instantiation and Test Benches: - Professor
7 pages
Module Instantiation and Test Benches: Hardware Description Language
PDF
No ratings yet
Module Instantiation and Test Benches: Hardware Description Language
12 pages
DRILL1
PDF
No ratings yet
DRILL1
9 pages
Week 1-2 Introduction To Hardware Description Language
PDF
No ratings yet
Week 1-2 Introduction To Hardware Description Language
23 pages
15CS202 Unitv
PDF
No ratings yet
15CS202 Unitv
142 pages
Module Instantiation and Test Benches: Hardware Description Language
PDF
No ratings yet
Module Instantiation and Test Benches: Hardware Description Language
15 pages
ELEC2141 Week 7 After Lecture
PDF
No ratings yet
ELEC2141 Week 7 After Lecture
51 pages
Drill 1 Part 1 Rev1
PDF
No ratings yet
Drill 1 Part 1 Rev1
10 pages
Drill 1
PDF
No ratings yet
Drill 1
10 pages
Intro HDL
PDF
No ratings yet
Intro HDL
141 pages
Module Instantiation and Test Benches: Drill 1
PDF
No ratings yet
Module Instantiation and Test Benches: Drill 1
9 pages
Intro To HDL Midterm
PDF
No ratings yet
Intro To HDL Midterm
112 pages
Module Instantiation and Test Benches: Drill 1
PDF
No ratings yet
Module Instantiation and Test Benches: Drill 1
16 pages
Digital Ic Design Skill Lab
PDF
No ratings yet
Digital Ic Design Skill Lab
33 pages
HDL Session1 - PDP
PDF
No ratings yet
HDL Session1 - PDP
68 pages
U-1 Overview of HDL
PDF
No ratings yet
U-1 Overview of HDL
14 pages
Lab 2 Tutorial PDF
PDF
No ratings yet
Lab 2 Tutorial PDF
16 pages
Digital Design Through Verilog1
PDF
No ratings yet
Digital Design Through Verilog1
65 pages
Hardware Description Language
PDF
No ratings yet
Hardware Description Language
29 pages
Introduction To HDL
PDF
No ratings yet
Introduction To HDL
72 pages
What Is Verilog?: Introduction To Verilog + Icarus + Gtkwave
PDF
No ratings yet
What Is Verilog?: Introduction To Verilog + Icarus + Gtkwave
12 pages
Verilog 1726400699
PDF
No ratings yet
Verilog 1726400699
33 pages
Mano (5th Ed) - Verilog HDL
PDF
No ratings yet
Mano (5th Ed) - Verilog HDL
130 pages
Verilog - Mano
PDF
No ratings yet
Verilog - Mano
43 pages
DSDV Lab @vtudeveloper - in
PDF
No ratings yet
DSDV Lab @vtudeveloper - in
49 pages
Hardware Description Language
PDF
No ratings yet
Hardware Description Language
29 pages
Terms Relevant To Verilog HDL - Module & Test Bench: Page 1 of 12
PDF
No ratings yet
Terms Relevant To Verilog HDL - Module & Test Bench: Page 1 of 12
12 pages
Verilog Posted
PDF
No ratings yet
Verilog Posted
35 pages
Verilog - Introduction - 1
PDF
No ratings yet
Verilog - Introduction - 1
26 pages
HDL Programming Lab Manual Final Updated
PDF
No ratings yet
HDL Programming Lab Manual Final Updated
77 pages
Verilog HDL: A Guide To Digital Design DS TH I and Synthesis
PDF
No ratings yet
Verilog HDL: A Guide To Digital Design DS TH I and Synthesis
62 pages
Verilog Basic
PDF
No ratings yet
Verilog Basic
48 pages
Lecture 1
PDF
No ratings yet
Lecture 1
29 pages
Chapter-3 verilogHDLUPD
PDF
No ratings yet
Chapter-3 verilogHDLUPD
138 pages
Digtal Design - Lec-2
PDF
No ratings yet
Digtal Design - Lec-2
14 pages
Verilog HDL
PDF
100% (1)
Verilog HDL
62 pages
Unit 1 - LP1
PDF
No ratings yet
Unit 1 - LP1
59 pages
DSD Module 2
PDF
No ratings yet
DSD Module 2
118 pages
Lab 4a
PDF
No ratings yet
Lab 4a
12 pages
DSD Unit - 1 - 230727 - 204320
PDF
No ratings yet
DSD Unit - 1 - 230727 - 204320
26 pages
Verilog
PDF
No ratings yet
Verilog
20 pages
LEC 1 - Intro To HDL
PDF
No ratings yet
LEC 1 - Intro To HDL
35 pages
Verilog Introduction: Behavioral Level
PDF
No ratings yet
Verilog Introduction: Behavioral Level
18 pages
ENEL111 Digital Electronics: Richard Nelson G.1.29
PDF
No ratings yet
ENEL111 Digital Electronics: Richard Nelson G.1.29
38 pages
Verilog 1
PDF
No ratings yet
Verilog 1
24 pages
Unit 1
PDF
No ratings yet
Unit 1
299 pages
Unit-V Verilog Hardware Description Language
PDF
No ratings yet
Unit-V Verilog Hardware Description Language
73 pages
Unit 3
PDF
No ratings yet
Unit 3
104 pages
Monish PPT VERILOG HDL
PDF
No ratings yet
Monish PPT VERILOG HDL
201 pages
VHDL Lab
PDF
No ratings yet
VHDL Lab
50 pages
Verilog Wikipedia
PDF
No ratings yet
Verilog Wikipedia
14 pages
EE-421 Digital System Design Lab (Fall 2016) : Or, Not
PDF
No ratings yet
EE-421 Digital System Design Lab (Fall 2016) : Or, Not
12 pages
6 HDL
PDF
No ratings yet
6 HDL
12 pages
Digital Design Lab Manual: Introduction To Verilog
PDF
No ratings yet
Digital Design Lab Manual: Introduction To Verilog
48 pages
Introduction Verilog
PDF
100% (1)
Introduction Verilog
193 pages
Caddunit3 4
PDF
No ratings yet
Caddunit3 4
261 pages
Using Hardware Description Language Verilog HDL & System Verilog
PDF
No ratings yet
Using Hardware Description Language Verilog HDL & System Verilog
21 pages
Hmuv - 2
PDF
No ratings yet
Hmuv - 2
62 pages
Analog Dialogue, Volume 47, Number 1: Analog Dialogue, #9
From Everand
Analog Dialogue, Volume 47, Number 1: Analog Dialogue, #9
Analog Dialogue
No ratings yet
WAN TECHNOLOGY FRAME-RELAY: An Expert's Handbook of Navigating Frame Relay Networks
From Everand
WAN TECHNOLOGY FRAME-RELAY: An Expert's Handbook of Navigating Frame Relay Networks
Mamta Devi
No ratings yet
Himax HX8352 Spec
PDF
No ratings yet
Himax HX8352 Spec
161 pages
Cummins ISX Engine Harness P92-1262 E 01: Usage Note
PDF
No ratings yet
Cummins ISX Engine Harness P92-1262 E 01: Usage Note
5 pages
Nvis 5586A Final
PDF
No ratings yet
Nvis 5586A Final
191 pages
NFPA 25, Chapter 8
PDF
No ratings yet
NFPA 25, Chapter 8
7 pages
Belanko Belanko: Dimmers and Ventilation Control Double Pole Switches and Cooker Control Unit
PDF
No ratings yet
Belanko Belanko: Dimmers and Ventilation Control Double Pole Switches and Cooker Control Unit
1 page
Communication Systems Fundamentals
PDF
No ratings yet
Communication Systems Fundamentals
161 pages
Planos Electricos de Manitou 1033
PDF
No ratings yet
Planos Electricos de Manitou 1033
74 pages
DFUN PBMS9000 For Large-Scale Data Center 2023 V2.1
PDF
No ratings yet
DFUN PBMS9000 For Large-Scale Data Center 2023 V2.1
5 pages
Maritime University of Szczecin: Instruction
PDF
No ratings yet
Maritime University of Szczecin: Instruction
10 pages
Street / Gold-Smd: Data Sheet
PDF
No ratings yet
Street / Gold-Smd: Data Sheet
1 page
Water Jacked Cooled Motors For Marine Application: Reference List
PDF
No ratings yet
Water Jacked Cooled Motors For Marine Application: Reference List
3 pages
Solid Alliance Multi-Operator Das
PDF
No ratings yet
Solid Alliance Multi-Operator Das
3 pages
Carrier Venezuela Traducir
PDF
No ratings yet
Carrier Venezuela Traducir
21 pages
L6B TFT-LCD TV Service Manual
PDF
No ratings yet
L6B TFT-LCD TV Service Manual
35 pages
AC Motor Control Circuits - Worksheet
PDF
100% (1)
AC Motor Control Circuits - Worksheet
22 pages
Columbia University Mention of Hedy Lamarr
PDF
No ratings yet
Columbia University Mention of Hedy Lamarr
44 pages
Basic Signal Operations
PDF
No ratings yet
Basic Signal Operations
12 pages
Appl 21 Medium Sized Generator Protection en
PDF
No ratings yet
Appl 21 Medium Sized Generator Protection en
8 pages
Datasheet Igbt Drive Chino
PDF
No ratings yet
Datasheet Igbt Drive Chino
11 pages
17EC81 Notes Module-3
PDF
No ratings yet
17EC81 Notes Module-3
22 pages
Solar Powered Smart Irrigation System
PDF
No ratings yet
Solar Powered Smart Irrigation System
2 pages
KNX rm005 - en P
PDF
No ratings yet
KNX rm005 - en P
38 pages
Upfc Placement
PDF
No ratings yet
Upfc Placement
0 pages
Hv-T73a-Gete Di̇ode Catalog
PDF
No ratings yet
Hv-T73a-Gete Di̇ode Catalog
2 pages
1
PDF
No ratings yet
1
6 pages
DNP3 Control Relay Output Block
PDF
100% (1)
DNP3 Control Relay Output Block
13 pages
Short Circuit Ratio of A Synchronous Machine - Its Significance - Circuit Globe
PDF
No ratings yet
Short Circuit Ratio of A Synchronous Machine - Its Significance - Circuit Globe
10 pages
PVP35kW and PVP50kW: Three-Phase Inverter Solutions For Small Commercial Projects
PDF
No ratings yet
PVP35kW and PVP50kW: Three-Phase Inverter Solutions For Small Commercial Projects
2 pages