SlideShare a Scribd company logo
1 of 12
Download to read offline
Hardware Description Languages (HDLs)
• HDLs are similar to programming languages but not exactly the same.
• We utilize a programming language to build or create software, whereas we use a
hardware description language to describe or express the behavioral characteristics of
digital logic circuits.
• We utilize HDLs for designing processors, motherboards, CPUs (i.e., computer chips), as
well as various other digital circuitry.
• Three main HDLs are
1) VHDL
2) Verilog
3) SystemVerilog
VHDL
• VHDL stands for Very High Speed Integrated Circuit (VHSIC) Hardware Description
Language (VHDL).It works on RTL (Register Transfer Level). RTL design involves
describing the behavior of a design as the transfers that occur between registers every
clock cycle. VHDL is strongly typed but case insensitive language. It serves best for high
level and complex designs.
• VHDL program contains..
1) Entity: Describes the interface of our design 3)Port: Ports/Pins used by entity.
2) Architecture: Describes underlying functionality of Entity
*Single entity can have more than one architecture.
EXAMPLE: entity and2 is
port( a: in std_logic; b: in std_logic; c: out std_logic);
end and2;
architecture and2_a of and2 is
begin
c <= a and b;
end and2_a;
VHDL
• Data Types: This is a classification objects/items/data that defines the possible set of
values which the objects/items/data belonging to that type may assume.
1) Bit: 2) Integer: integer number from
-2,147,483,647 to + 2,147,483,647
(i.e. size is 32 bits)
Example
VARIABLE a: INTEGER;
Variable Assignment operator :=
a := ‘1346’;
3) Std_logic: It is the most common data type used to hold a single bit value or to hold
multiple bits if std_logic_vector is used.
Example
SIGNAL s1: std_logic := ‘0’;
etc..
VHDL
• Naming Conventions: Designed to make your code easier to read, understand, and
debug. By following these rules, it also makes it easier for others to understand your
code.
• Enitities, Architectures, Functions Naming conventions:
Names should describe, in some way, what the block of code does
Names should be lowercase and use underscores to separate words
Entities should have unique names. Architecture need not have unique names as they
are linked to entities, but should have a name resembling their entity (eg. 'entity_arch’
or 'entity_rtl')
• Signal Naming Conventions
Use '<signal_name>_addr' for addresses and '<signal_name>_clk' for clocks
For active-low signals, using '<signal_name>_l' is preferred
VHDL
• Operators:
1) Arithmetic operators: +, -, *, /, not, etc. 4) Logical operators:
2) Shift operators:
3) Relational operators:
sll Shift left logical
srl Shift right logical
sla Shift left arithmetic
sra Shift right arithmetic
etc.
= Test for equality
/= Test for inequality
<= Test for less than or equal & assignment operator
(*to assign values to a variable)
>= Test for greater than or equal
< Test for less than
> Test for greater than
and Logical and
or Logical or
nand Logical complement of and
nor Logical complement of or
xor logical exclusive of or
xnor logical complement of exclusive of or
VHDL modelling styles
• 1. Data flow modeling (Design Equations)
Data flow modeling can be described based on the Boolean expression. It shows how the
data flows from input to output. It works on Concurrent execution.
• 2. Behavioral modeling (Explains Behaviour)
Behavioral modeling is used to execute statements sequentially. It shows that how the
system performs according to the current statement.
Behavioral modeling may contain Process statements, Sequential statements, Signal
assignment statements, and wait statements.
• 3. Structural modeling (Connection of sub modules)
Structural modeling is used to specify the functionality and structure of the circuit.
Structural modeling contain signal declarations, component instances, and port maps in
component instance.
VHDL behavioural modelling example
Bottom testing loop
• Loops implemented with the test at the bottom (a do loop) are called bottom-driven
loops.
• do while is a bottom tested loop.
do {….
………
………}
While(____)
Verilog
• Verilog stands for Verification and Logic.
• It works on RTL (Register Transfer Level). RTL design involves describing the behavior of
a design as the transfers that occur between registers every clock cycle.
• Verilog is loosely typed language (i.e., data types can be used in a mix and match way)
but case sensitive language. It serves better for low level and simple designs.
• Verilog can be used to describe designs at four levels of abstraction:
(i) Algorithmic level (much like c code with if, case and loop statements).
(ii) Register transfer level (RTL uses registers connected by Boolean equations).
(iii) Gate level (interconnected AND, NOR etc.).
(iv) Switch level (the switches are MOS transistors inside gates).
Verilog
• Data Types: This is a classification objects/items/data that defines the possible set of values
which the objects/items/data belonging to that type may assume.
1) Value set for data types 2) Integer: integer number from
-2,147,483,647 to + 2,147,483,647
(i.e. size is 32 bits)
Example
integer a;
assign a=63;
3) wire: It represents a physical wire in a circuit, so it can be read but can’t be assigned.
Example
wire c;
4) reg: Register data type is used to create a variable, representing register/registers.
Example
reg a; // single 1-bit register variable
reg [7:0] b, c; // two 8-bit register variables
5) Input, Output:
input a; // a is an input variable
output b, c; // b and c are output variables
Verilog
• Naming Conventions: Designed to make your code easier to read, understand, and
debug. By following these rules, it also makes it easier for others to understand your
code.
• Input naming convention:
input i_Clock;
• Output naming convention:
output o_Data;
• Register naming convention:
Reg r_Data;
Verilog
• Operators:
1) Arithmetic operators: +, -, *, /, etc. 4) Logical operators:
2) Shift operators:
3) Relational operators:
<< Shift left
>> Shift right
== Test for equality
!= Test for inequality
<= Test for less than or equal
>= Test for greater than or equal
< Test for less than
> Test for greater than
&& Logical and
|| Logical or
! Logical not

More Related Content

Similar to DLD5.pdf (20)

Summer training vhdl
Summer training vhdlSummer training vhdl
Summer training vhdl
 
UNIT-I.pptx of subject in engineering bla bla bla
UNIT-I.pptx of subject in engineering bla bla blaUNIT-I.pptx of subject in engineering bla bla bla
UNIT-I.pptx of subject in engineering bla bla bla
 
Vhdl new
Vhdl newVhdl new
Vhdl new
 
Vhdl 1 ppg
Vhdl 1 ppgVhdl 1 ppg
Vhdl 1 ppg
 
Vhdl
VhdlVhdl
Vhdl
 
Verilog
VerilogVerilog
Verilog
 
VHDL-PRESENTATION.ppt
VHDL-PRESENTATION.pptVHDL-PRESENTATION.ppt
VHDL-PRESENTATION.ppt
 
Wi Fi documantation
Wi Fi documantationWi Fi documantation
Wi Fi documantation
 
Vhdl introduction
Vhdl introductionVhdl introduction
Vhdl introduction
 
Vlsi(2)
Vlsi(2)Vlsi(2)
Vlsi(2)
 
Verilog
VerilogVerilog
Verilog
 
Prilimanary Concepts of VHDL by Dr.R.Prakash Rao
Prilimanary Concepts of VHDL by    Dr.R.Prakash RaoPrilimanary Concepts of VHDL by    Dr.R.Prakash Rao
Prilimanary Concepts of VHDL by Dr.R.Prakash Rao
 
Expo de digitales (2)
Expo de digitales (2)Expo de digitales (2)
Expo de digitales (2)
 
Spdas2 vlsibput
Spdas2 vlsibputSpdas2 vlsibput
Spdas2 vlsibput
 
Ece iv-fundamentals of hdl [10 ec45]-notes
Ece iv-fundamentals of hdl [10 ec45]-notesEce iv-fundamentals of hdl [10 ec45]-notes
Ece iv-fundamentals of hdl [10 ec45]-notes
 
Lecture2 vhdl refresher
Lecture2 vhdl refresherLecture2 vhdl refresher
Lecture2 vhdl refresher
 
Vhdl
VhdlVhdl
Vhdl
 
DOUBLE PRECISION FLOATING POINT CORE IN VERILOG
DOUBLE PRECISION FLOATING POINT CORE IN VERILOGDOUBLE PRECISION FLOATING POINT CORE IN VERILOG
DOUBLE PRECISION FLOATING POINT CORE IN VERILOG
 
hardware description language power point presentation
hardware description language power point presentationhardware description language power point presentation
hardware description language power point presentation
 
VLSI
VLSIVLSI
VLSI
 

Recently uploaded

Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 

Recently uploaded (20)

Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 

DLD5.pdf

  • 1. Hardware Description Languages (HDLs) • HDLs are similar to programming languages but not exactly the same. • We utilize a programming language to build or create software, whereas we use a hardware description language to describe or express the behavioral characteristics of digital logic circuits. • We utilize HDLs for designing processors, motherboards, CPUs (i.e., computer chips), as well as various other digital circuitry. • Three main HDLs are 1) VHDL 2) Verilog 3) SystemVerilog
  • 2. VHDL • VHDL stands for Very High Speed Integrated Circuit (VHSIC) Hardware Description Language (VHDL).It works on RTL (Register Transfer Level). RTL design involves describing the behavior of a design as the transfers that occur between registers every clock cycle. VHDL is strongly typed but case insensitive language. It serves best for high level and complex designs. • VHDL program contains.. 1) Entity: Describes the interface of our design 3)Port: Ports/Pins used by entity. 2) Architecture: Describes underlying functionality of Entity *Single entity can have more than one architecture. EXAMPLE: entity and2 is port( a: in std_logic; b: in std_logic; c: out std_logic); end and2; architecture and2_a of and2 is begin c <= a and b; end and2_a;
  • 3. VHDL • Data Types: This is a classification objects/items/data that defines the possible set of values which the objects/items/data belonging to that type may assume. 1) Bit: 2) Integer: integer number from -2,147,483,647 to + 2,147,483,647 (i.e. size is 32 bits) Example VARIABLE a: INTEGER; Variable Assignment operator := a := ‘1346’; 3) Std_logic: It is the most common data type used to hold a single bit value or to hold multiple bits if std_logic_vector is used. Example SIGNAL s1: std_logic := ‘0’; etc..
  • 4. VHDL • Naming Conventions: Designed to make your code easier to read, understand, and debug. By following these rules, it also makes it easier for others to understand your code. • Enitities, Architectures, Functions Naming conventions: Names should describe, in some way, what the block of code does Names should be lowercase and use underscores to separate words Entities should have unique names. Architecture need not have unique names as they are linked to entities, but should have a name resembling their entity (eg. 'entity_arch’ or 'entity_rtl') • Signal Naming Conventions Use '<signal_name>_addr' for addresses and '<signal_name>_clk' for clocks For active-low signals, using '<signal_name>_l' is preferred
  • 5. VHDL • Operators: 1) Arithmetic operators: +, -, *, /, not, etc. 4) Logical operators: 2) Shift operators: 3) Relational operators: sll Shift left logical srl Shift right logical sla Shift left arithmetic sra Shift right arithmetic etc. = Test for equality /= Test for inequality <= Test for less than or equal & assignment operator (*to assign values to a variable) >= Test for greater than or equal < Test for less than > Test for greater than and Logical and or Logical or nand Logical complement of and nor Logical complement of or xor logical exclusive of or xnor logical complement of exclusive of or
  • 6. VHDL modelling styles • 1. Data flow modeling (Design Equations) Data flow modeling can be described based on the Boolean expression. It shows how the data flows from input to output. It works on Concurrent execution. • 2. Behavioral modeling (Explains Behaviour) Behavioral modeling is used to execute statements sequentially. It shows that how the system performs according to the current statement. Behavioral modeling may contain Process statements, Sequential statements, Signal assignment statements, and wait statements. • 3. Structural modeling (Connection of sub modules) Structural modeling is used to specify the functionality and structure of the circuit. Structural modeling contain signal declarations, component instances, and port maps in component instance.
  • 8. Bottom testing loop • Loops implemented with the test at the bottom (a do loop) are called bottom-driven loops. • do while is a bottom tested loop. do {…. ……… ………} While(____)
  • 9. Verilog • Verilog stands for Verification and Logic. • It works on RTL (Register Transfer Level). RTL design involves describing the behavior of a design as the transfers that occur between registers every clock cycle. • Verilog is loosely typed language (i.e., data types can be used in a mix and match way) but case sensitive language. It serves better for low level and simple designs. • Verilog can be used to describe designs at four levels of abstraction: (i) Algorithmic level (much like c code with if, case and loop statements). (ii) Register transfer level (RTL uses registers connected by Boolean equations). (iii) Gate level (interconnected AND, NOR etc.). (iv) Switch level (the switches are MOS transistors inside gates).
  • 10. Verilog • Data Types: This is a classification objects/items/data that defines the possible set of values which the objects/items/data belonging to that type may assume. 1) Value set for data types 2) Integer: integer number from -2,147,483,647 to + 2,147,483,647 (i.e. size is 32 bits) Example integer a; assign a=63; 3) wire: It represents a physical wire in a circuit, so it can be read but can’t be assigned. Example wire c; 4) reg: Register data type is used to create a variable, representing register/registers. Example reg a; // single 1-bit register variable reg [7:0] b, c; // two 8-bit register variables 5) Input, Output: input a; // a is an input variable output b, c; // b and c are output variables
  • 11. Verilog • Naming Conventions: Designed to make your code easier to read, understand, and debug. By following these rules, it also makes it easier for others to understand your code. • Input naming convention: input i_Clock; • Output naming convention: output o_Data; • Register naming convention: Reg r_Data;
  • 12. Verilog • Operators: 1) Arithmetic operators: +, -, *, /, etc. 4) Logical operators: 2) Shift operators: 3) Relational operators: << Shift left >> Shift right == Test for equality != Test for inequality <= Test for less than or equal >= Test for greater than or equal < Test for less than > Test for greater than && Logical and || Logical or ! Logical not