SlideShare a Scribd company logo
3
Most read
7
Most read
9
Most read
Review:
 Structure of VHDL –explanation & Syntax
 Behavioral Modelling-with examples
Kongunadu College of Engineering & Technology VHDL 1
Structure of VHDL module
 The main components of a VHDL description consists of
following kinds of declarations:
 Package
 Entity
 Architecture
 Configuration
Kongunadu College of Engineering & Technology VHDL 2
Entity Declaration
 It gives the specification of input/output signals to external
circuitry.
 An entity is modeled using an entity declaration and at least
one architecture body.
 Entity gives interfacing between device and the other
peripherals.
Syntax:
entity entity_name is
port( signal_names: mode signal_type;
signal_names: mode signal_type;
.
.
.
signal_names: mode signal_type);
end entity_name;
Kongunadu College of Engineering & Technology VHDL 3
Architecture
 It specifies the behavior, functionality, interconnections or
relationship between inputs and outputs.
 It is the actual description of the design.
 An architecture consists of two portions: architecture
declaration and architecture body
 An architecture body specifies the internal details of the
entity.
 set of concurrent assignment statements(to represent dataflow)
 set of interconnected components(to represent structure)
 set of sequential assignment statements(to represent behavior)
Kongunadu College of Engineering & Technology VHDL 4
Contd…
Syntax:
Architecture architecture_name of entity_name is
Declarations
begin
concurrent statements;
sequential statements;
end architecture_name;
Kongunadu College of Engineering & Technology VHDL 5
Configuration declaration
 It may be used to associate particular design entities to
component instances in a hierarchical design, or to
associate a particular architecture to an entity.
Package declaration
 It is a convenient mechanism to store and share the
declarations that are common across many design units
 A package is represented by: Package declaration and
Package body
Kongunadu College of Engineering & Technology VHDL 6
Contd…
Syntax for package declaration:
PACKAGE package_name IS
Type declarations
Subtype declarations
Constant declarations
Signal declarations
Use clauses
END package_name;
Syntax for package body:
Package body package_name is
Subprogram bodies
Subprogram declarations
Type and subtype declarations
File and alias declarations
Use clauses
End package_name;
Kongunadu College of Engineering & Technology VHDL 7
Behavioral Modelling
 It is method of directly describe the behavior or the
functionality of a circuit.
 In VHDL, the behavior of the entity is expressed
using sequentially executed, procedural code.
 The key mechanism used to model the behavior of the
entity is a process statement.
Kongunadu College of Engineering & Technology VHDL 8
Examples of Behavioral modelling
 Write the VHDL code half adder in behavioral model.
entity half_add is
Port(A,B: in bit;
Sum,cout:out bit);
end half_add;
architecture adder of half_add is
begin
sum<= A XOR B;
cout<= A and B;
end adder;
Kongunadu College of Engineering & Technology VHDL 9
Contd…
 Write the VHDL code full adder in behavioral model.
entity full_add is
Port(A,B,Cin: in bit;
Sum,cout:out bit);
end full_add;
architecture adder of full_add is
begin
Process(A,B,Cin)
begin
sum<= A xor B xor Cin;
cout<= (A and B) or (Cin and A) or (Cin and B) ;
end process;
end adder;
Kongunadu College of Engineering & Technology VHDL 10
Contd…
 Write the VHDL code for a logical gate which gives
high output only when both the inputs are high.
Library ieee;
Use ieee.std_logic_1164.all;
Entity AND_G is
Port(A,B :in bit;
Y :out bit);
End AND_G;
Architecture AND of AND_G is
Begin
Q<=A and B;
End AND;
Kongunadu College of Engineering & Technology VHDL 11
Contd…
 Write VHDL behavioral model for D flip flop.
Library ieee;
Use ieee.std_logic_1164.all;
Entity DFF is
Port(D,Clock :in std_logic;
Q :out std_logic);
End DFF;
Architecture behavior of DFF is
Begin
If Clock’event and clock=’1’ then
Q<=D;
End if;
End process;
End behavior;
Kongunadu College of Engineering & Technology VHDL 12
Conclusion & References
 Through this presentation we have learned about the basic structure of
VHDL with the syntax of all its components
 Also the behavioral model of VHDL is discussed with examples.
References:
Kongunadu College of Engineering & Technology VHDL 13
1. Mandal, “Digital Electronics Principles & Application, McGraw Hill Edu, 2013.
2. William Keitz, Digital Electronics-A Practical Approach with VHDL, Pearson,
2013.
3. Thomas L.Floyd, ‘Digital Fundamentals’, 11th edition, Pearson Education, 2015.
4. Charles H.Roth, Jr, Lizy Lizy Kurian John, ‘Digital System Design using VHDL,
Cengage,2013.
5. D.P.Kothari,J.S.Dhillon, ‘Digital circuits and Design’,Pearson Education, 2016.
6. A.P.Godse., Dr.D.A.Godse, ‘Digital Logic Circuits’ , Technical Publications Third
Edition 2016
7. Other Web Sources

More Related Content

What's hot (20)

PPTX
Ripple Carry Adder
Aravindreddy Mokireddy
 
PPTX
Data flow model -Lecture-4
Dr.YNM
 
PPT
Data Flow Modeling
Padmanaban Kalyanaraman
 
PPT
multiplexers and demultiplexers
Unsa Shakir
 
PPT
Introduction to VHDL - Part 1
Abhilash Nair
 
PPTX
"BCD TO 7 SEGMENT DISPLAY DECODER"
FAIZAN SHAFI
 
PPT
4 bit add sub
dennis gookyi
 
PDF
Basic concepts in Verilog HDL
anand hd
 
PPTX
Bcd to excess 3 code converter
Ushaswini Chowdary
 
PPT
8086-instruction-set-ppt
jemimajerome
 
PPT
VHDL Part 4
Abhilash Nair
 
PPT
Sequential Logic Circuit
Ramasubbu .P
 
PDF
verilog code for logic gates
Rakesh kumar jha
 
PPTX
Adder ppt
Avinash Jadhav
 
PPTX
7 Segment Decoder
Kamal Acharya
 
PPT
Switch level modeling
Devi Pradeep Podugu
 
PPTX
BOOLEAN ALGEBRA AND LOGIC GATE
Tamim Tanvir
 
PPTX
Encoder and decoder
Then Murugeshwari
 
PPTX
latches
Unsa Shakir
 
PPTX
Introduction to VHDL
Mohamed Samy
 
Ripple Carry Adder
Aravindreddy Mokireddy
 
Data flow model -Lecture-4
Dr.YNM
 
Data Flow Modeling
Padmanaban Kalyanaraman
 
multiplexers and demultiplexers
Unsa Shakir
 
Introduction to VHDL - Part 1
Abhilash Nair
 
"BCD TO 7 SEGMENT DISPLAY DECODER"
FAIZAN SHAFI
 
4 bit add sub
dennis gookyi
 
Basic concepts in Verilog HDL
anand hd
 
Bcd to excess 3 code converter
Ushaswini Chowdary
 
8086-instruction-set-ppt
jemimajerome
 
VHDL Part 4
Abhilash Nair
 
Sequential Logic Circuit
Ramasubbu .P
 
verilog code for logic gates
Rakesh kumar jha
 
Adder ppt
Avinash Jadhav
 
7 Segment Decoder
Kamal Acharya
 
Switch level modeling
Devi Pradeep Podugu
 
BOOLEAN ALGEBRA AND LOGIC GATE
Tamim Tanvir
 
Encoder and decoder
Then Murugeshwari
 
latches
Unsa Shakir
 
Introduction to VHDL
Mohamed Samy
 

Similar to VHDL-Behavioral-Programs-Structure of VHDL (20)

PPTX
Vhdl
AAQIB PARREY
 
PDF
learning vhdl by examples
anishgoel
 
PPTX
VHDL summer training (ppt)
HoneyKumar34
 
PPTX
Vhdl
vandanamalode
 
PPTX
Dica ii chapter slides
SIVA NAGENDRA REDDY
 
PDF
Learning vhdl by examples
anishgoel
 
PDF
Vhdl introduction
Dhaval Shukla
 
PDF
Session1pdf
GamalSaied2
 
PDF
Chapter 5 introduction to VHDL
SSE_AndyLi
 
PPTX
Digital principle and computer design Presentation (1).pptx
MalligaarjunanN
 
PPTX
hardware description language power point presentation
dhananjeyanrece
 
DOCX
Prilimanary Concepts of VHDL by Dr.R.Prakash Rao
rachurivlsi
 
PDF
Fundamentals of HDL (first 4 chapters only) - Godse
Hammam
 
PPTX
VHDL for beginners in Printed Circuit Board designing
merlynsheena
 
PPTX
VHDL_VIKAS.pptx
ABHISHEKJHA176786
 
PPT
ece223-vhdl-lab1-w07.ppt
MukulKumar972668
 
PPT
ece223-vhdl-lab1-w07.ppt
MukulKumar972668
 
PPT
VHDL lecture 1.ppt
seemasylvester
 
learning vhdl by examples
anishgoel
 
VHDL summer training (ppt)
HoneyKumar34
 
Dica ii chapter slides
SIVA NAGENDRA REDDY
 
Learning vhdl by examples
anishgoel
 
Vhdl introduction
Dhaval Shukla
 
Session1pdf
GamalSaied2
 
Chapter 5 introduction to VHDL
SSE_AndyLi
 
Digital principle and computer design Presentation (1).pptx
MalligaarjunanN
 
hardware description language power point presentation
dhananjeyanrece
 
Prilimanary Concepts of VHDL by Dr.R.Prakash Rao
rachurivlsi
 
Fundamentals of HDL (first 4 chapters only) - Godse
Hammam
 
VHDL for beginners in Printed Circuit Board designing
merlynsheena
 
VHDL_VIKAS.pptx
ABHISHEKJHA176786
 
ece223-vhdl-lab1-w07.ppt
MukulKumar972668
 
ece223-vhdl-lab1-w07.ppt
MukulKumar972668
 
VHDL lecture 1.ppt
seemasylvester
 
Ad

More from Revathi Subramaniam (20)

PPTX
Introduction to embedded system
Revathi Subramaniam
 
PPTX
Inter intergrated circuits-communication protocol
Revathi Subramaniam
 
PPTX
Application of embeddd system
Revathi Subramaniam
 
PPTX
Embedded development life cycle
Revathi Subramaniam
 
PPTX
Adaptive cruise control acc
Revathi Subramaniam
 
PDF
Unsymmetrical fault analysis
Revathi Subramaniam
 
PDF
Structure of power system
Revathi Subramaniam
 
PDF
Restructuring
Revathi Subramaniam
 
PDF
Power flow analysis
Revathi Subramaniam
 
PDF
Per unit analysis
Revathi Subramaniam
 
PDF
Newton raphson method
Revathi Subramaniam
 
PDF
Introduction to power system analysis
Revathi Subramaniam
 
PDF
Gauss seidel method
Revathi Subramaniam
 
PDF
Fault analysis
Revathi Subramaniam
 
PDF
Fault analysis using z bus
Revathi Subramaniam
 
PDF
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
Revathi Subramaniam
 
PDF
Flip flops
Revathi Subramaniam
 
PDF
Complex Programmable Logic Devices(CPLD) & Field Programmable Logic Devices (...
Revathi Subramaniam
 
PDF
Counters
Revathi Subramaniam
 
PDF
Digital logic families
Revathi Subramaniam
 
Introduction to embedded system
Revathi Subramaniam
 
Inter intergrated circuits-communication protocol
Revathi Subramaniam
 
Application of embeddd system
Revathi Subramaniam
 
Embedded development life cycle
Revathi Subramaniam
 
Adaptive cruise control acc
Revathi Subramaniam
 
Unsymmetrical fault analysis
Revathi Subramaniam
 
Structure of power system
Revathi Subramaniam
 
Restructuring
Revathi Subramaniam
 
Power flow analysis
Revathi Subramaniam
 
Per unit analysis
Revathi Subramaniam
 
Newton raphson method
Revathi Subramaniam
 
Introduction to power system analysis
Revathi Subramaniam
 
Gauss seidel method
Revathi Subramaniam
 
Fault analysis
Revathi Subramaniam
 
Fault analysis using z bus
Revathi Subramaniam
 
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
Revathi Subramaniam
 
Complex Programmable Logic Devices(CPLD) & Field Programmable Logic Devices (...
Revathi Subramaniam
 
Digital logic families
Revathi Subramaniam
 
Ad

Recently uploaded (20)

PDF
Zilliz Cloud Demo for performance and scale
Zilliz
 
PPTX
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
PPTX
GitOps_Repo_Structure for begeinner(Scaffolindg)
DanialHabibi2
 
PDF
Design Thinking basics for Engineers.pdf
CMR University
 
PPTX
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
PDF
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
PPTX
GitOps_Without_K8s_Training simple one without k8s
DanialHabibi2
 
PPTX
MobileComputingMANET2023 MobileComputingMANET2023.pptx
masterfake98765
 
PPTX
Evaluation and thermal analysis of shell and tube heat exchanger as per requi...
shahveer210504
 
PPTX
Thermal runway and thermal stability.pptx
godow93766
 
PDF
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
PPTX
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
PDF
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
PDF
Biomechanics of Gait: Engineering Solutions for Rehabilitation (www.kiu.ac.ug)
publication11
 
PPTX
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
DOCX
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
PDF
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
PDF
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
PPTX
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
PPTX
美国电子版毕业证南卡罗莱纳大学上州分校水印成绩单USC学费发票定做学位证书编号怎么查
Taqyea
 
Zilliz Cloud Demo for performance and scale
Zilliz
 
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
GitOps_Repo_Structure for begeinner(Scaffolindg)
DanialHabibi2
 
Design Thinking basics for Engineers.pdf
CMR University
 
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
GitOps_Without_K8s_Training simple one without k8s
DanialHabibi2
 
MobileComputingMANET2023 MobileComputingMANET2023.pptx
masterfake98765
 
Evaluation and thermal analysis of shell and tube heat exchanger as per requi...
shahveer210504
 
Thermal runway and thermal stability.pptx
godow93766
 
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
Biomechanics of Gait: Engineering Solutions for Rehabilitation (www.kiu.ac.ug)
publication11
 
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
美国电子版毕业证南卡罗莱纳大学上州分校水印成绩单USC学费发票定做学位证书编号怎么查
Taqyea
 

VHDL-Behavioral-Programs-Structure of VHDL

  • 1. Review:  Structure of VHDL –explanation & Syntax  Behavioral Modelling-with examples Kongunadu College of Engineering & Technology VHDL 1
  • 2. Structure of VHDL module  The main components of a VHDL description consists of following kinds of declarations:  Package  Entity  Architecture  Configuration Kongunadu College of Engineering & Technology VHDL 2
  • 3. Entity Declaration  It gives the specification of input/output signals to external circuitry.  An entity is modeled using an entity declaration and at least one architecture body.  Entity gives interfacing between device and the other peripherals. Syntax: entity entity_name is port( signal_names: mode signal_type; signal_names: mode signal_type; . . . signal_names: mode signal_type); end entity_name; Kongunadu College of Engineering & Technology VHDL 3
  • 4. Architecture  It specifies the behavior, functionality, interconnections or relationship between inputs and outputs.  It is the actual description of the design.  An architecture consists of two portions: architecture declaration and architecture body  An architecture body specifies the internal details of the entity.  set of concurrent assignment statements(to represent dataflow)  set of interconnected components(to represent structure)  set of sequential assignment statements(to represent behavior) Kongunadu College of Engineering & Technology VHDL 4
  • 5. Contd… Syntax: Architecture architecture_name of entity_name is Declarations begin concurrent statements; sequential statements; end architecture_name; Kongunadu College of Engineering & Technology VHDL 5
  • 6. Configuration declaration  It may be used to associate particular design entities to component instances in a hierarchical design, or to associate a particular architecture to an entity. Package declaration  It is a convenient mechanism to store and share the declarations that are common across many design units  A package is represented by: Package declaration and Package body Kongunadu College of Engineering & Technology VHDL 6
  • 7. Contd… Syntax for package declaration: PACKAGE package_name IS Type declarations Subtype declarations Constant declarations Signal declarations Use clauses END package_name; Syntax for package body: Package body package_name is Subprogram bodies Subprogram declarations Type and subtype declarations File and alias declarations Use clauses End package_name; Kongunadu College of Engineering & Technology VHDL 7
  • 8. Behavioral Modelling  It is method of directly describe the behavior or the functionality of a circuit.  In VHDL, the behavior of the entity is expressed using sequentially executed, procedural code.  The key mechanism used to model the behavior of the entity is a process statement. Kongunadu College of Engineering & Technology VHDL 8
  • 9. Examples of Behavioral modelling  Write the VHDL code half adder in behavioral model. entity half_add is Port(A,B: in bit; Sum,cout:out bit); end half_add; architecture adder of half_add is begin sum<= A XOR B; cout<= A and B; end adder; Kongunadu College of Engineering & Technology VHDL 9
  • 10. Contd…  Write the VHDL code full adder in behavioral model. entity full_add is Port(A,B,Cin: in bit; Sum,cout:out bit); end full_add; architecture adder of full_add is begin Process(A,B,Cin) begin sum<= A xor B xor Cin; cout<= (A and B) or (Cin and A) or (Cin and B) ; end process; end adder; Kongunadu College of Engineering & Technology VHDL 10
  • 11. Contd…  Write the VHDL code for a logical gate which gives high output only when both the inputs are high. Library ieee; Use ieee.std_logic_1164.all; Entity AND_G is Port(A,B :in bit; Y :out bit); End AND_G; Architecture AND of AND_G is Begin Q<=A and B; End AND; Kongunadu College of Engineering & Technology VHDL 11
  • 12. Contd…  Write VHDL behavioral model for D flip flop. Library ieee; Use ieee.std_logic_1164.all; Entity DFF is Port(D,Clock :in std_logic; Q :out std_logic); End DFF; Architecture behavior of DFF is Begin If Clock’event and clock=’1’ then Q<=D; End if; End process; End behavior; Kongunadu College of Engineering & Technology VHDL 12
  • 13. Conclusion & References  Through this presentation we have learned about the basic structure of VHDL with the syntax of all its components  Also the behavioral model of VHDL is discussed with examples. References: Kongunadu College of Engineering & Technology VHDL 13 1. Mandal, “Digital Electronics Principles & Application, McGraw Hill Edu, 2013. 2. William Keitz, Digital Electronics-A Practical Approach with VHDL, Pearson, 2013. 3. Thomas L.Floyd, ‘Digital Fundamentals’, 11th edition, Pearson Education, 2015. 4. Charles H.Roth, Jr, Lizy Lizy Kurian John, ‘Digital System Design using VHDL, Cengage,2013. 5. D.P.Kothari,J.S.Dhillon, ‘Digital circuits and Design’,Pearson Education, 2016. 6. A.P.Godse., Dr.D.A.Godse, ‘Digital Logic Circuits’ , Technical Publications Third Edition 2016 7. Other Web Sources