SlideShare a Scribd company logo
BASIC CODING IN VHDL
USING QUARTUS SOFTWARE
SUBMITTED BY
RAJA.I (IV - ECE)
DEPARTMENT OF ELECTRONICS AND COMMUNICATION
ENGINEERING
Basic Coding In VHDL COding
VHDL stands for very high-speed integrated circuit hardware
description language.
It is a programming language used to model a digital system by
dataflow, behavioral and structural style of modeling.
This language was first introduced in 1981 for the department of
Defense (DoD) under the VHSIC program.
In VHDL an entity is used to describe a hardware module. An
entity can be described using,
Entity declaration
Architecture
Configuration
Package declaration
Package body
It defines the names, input output signals and modes of a
hardware module.
Syntax:
entity entity_name is
Port declaration;
end entity_name;
IN -read
OUT-write
INOUT-both read and write
Architecture can be described using structural, dataflow, behavioral or mixed style.
Architecture declarative part may contain variables, constants, or component
declaration.
Syntax:
architecture architecture_name of entity_name
architecture_declarative_part;
begin
Statements;
end architecture_name;
entity entity-name is
[port(interface-signal-declaration);]
end [entity] [entity-name];
architecture architecture-name of entity-name is
[declarations]
begin
architecture body
end [architecture] [architecture-name];
In this modeling style, the flow of data through the entity is
expressed using concurrent (parallel) signal.
The concurrent statements in VHDL are WHEN and GENERATE.
USED TO:
The GENERATE statement;
The BLOCK statement
The WHEN statement
Library ieee;
use ieee.std_logic_1164.all;
entity and11 is
port(x,y:in bit ; z:out bit);
end and1;
architecture raja of and11 is
begin
z<=x and y;
end raja;
In this modeling style, the behavior of an entity as set of statements is
executed sequentially in the specified order. Only statements placed inside a
PROCESS, FUNCTION, or PROCEDURE are sequential.
PROCESSES, FUNCTIONS, and PROCEDURES are the only sections of
code that are executed sequentially.
However, as a whole, any of these blocks is still concurrent with any other
statements placed outside it.
One important aspect of behavior code is that it is not limited to sequential
logic. Indeed, with it, we can build sequential circuits as well as
combinational circuits.
TRUTH TABLE
A B Q
0 0 0
0 1 0
1 0 0
1 1 1
AND GATE
Library ieee;
use ieee.std_logic_1164.all;
entity and1 is
port(x,y:in bit ; z:out bit);
end and1;
architecture virat of and1 is
begin
process(a,b)
begin
if(a='0')
y<=0;
else if(a<b);
end if;
end if;
end process;
end virat;
In this modeling, an entity is described as a set of interconnected
components.
A component instantiation statement is a concurrent statement.
Therefore, the order of these statements is not important.
The structural style of modeling describes only an interconnection
of components (viewed as black boxes), without implying any
behavior of the components themselves nor of the entity that they
collectively represent.
HALF ADDER
Library ieee;
use ieee.std_logic_1164.all;
entity half_adder is
port(a,b:in bit; sum,carry:out bit);
end half_adder;
architecture data of half_adder is
begin
sum<= a xor b;
carry <= a and b;
end data;
 Standard language
 Powerful and versatile description language
 Multiple machanisms to support design hierarchy
 Versatile design reconfiguration support
 Support for multiple levels of abstaction
 Controlling functionality
 State machines
 Bus protocolls and
 Interfaces

More Related Content

What's hot (20)

PPTX
Lecture 18
talha ijaz
 
PPT
Methods in C#
Prasanna Kumar SM
 
PDF
Bt0066 database management system2
Techglyphs
 
PPT
Literals,variables,datatype in C#
Prasanna Kumar SM
 
PDF
Introduction to database-ER Model
Ajit Nayak
 
PDF
Core Java Programming Language (JSE) : Chapter III - Identifiers, Keywords, ...
WebStackAcademy
 
PPT
Coding verilog
umarjamil10000
 
PDF
Notes: Verilog Part 2 - Modules and Ports - Structural Modeling (Gate-Level M...
Jay Baxi
 
PDF
Handout#09
Sunita Milind Dol
 
PPT
Interfaces
Jai Marathe
 
PDF
VHDL- gate level modelling
VandanaPagar1
 
PDF
Handout#08
Sunita Milind Dol
 
ODP
(7) c sharp introduction_advanvced_features_part_ii
Nico Ludwig
 
PPTX
PROGRAMMABLE LOGIC DEVICES PATR 2 OF 2
Kundan Gupta
 
PPT
Fpga 06-data-types-system-tasks-compiler-directives
Malik Tauqir Hasan
 
PDF
Assignment11
Sunita Milind Dol
 
PDF
Notes: Verilog Part 4- Behavioural Modelling
Jay Baxi
 
PPTX
Functional programming
Kibru Demeke
 
PDF
A recommender system for generalizing and refining code templates
Coen De Roover
 
PPT
358 33 powerpoint-slides_1-introduction-c_chapter-1
sumitbardhan
 
Lecture 18
talha ijaz
 
Methods in C#
Prasanna Kumar SM
 
Bt0066 database management system2
Techglyphs
 
Literals,variables,datatype in C#
Prasanna Kumar SM
 
Introduction to database-ER Model
Ajit Nayak
 
Core Java Programming Language (JSE) : Chapter III - Identifiers, Keywords, ...
WebStackAcademy
 
Coding verilog
umarjamil10000
 
Notes: Verilog Part 2 - Modules and Ports - Structural Modeling (Gate-Level M...
Jay Baxi
 
Handout#09
Sunita Milind Dol
 
Interfaces
Jai Marathe
 
VHDL- gate level modelling
VandanaPagar1
 
Handout#08
Sunita Milind Dol
 
(7) c sharp introduction_advanvced_features_part_ii
Nico Ludwig
 
PROGRAMMABLE LOGIC DEVICES PATR 2 OF 2
Kundan Gupta
 
Fpga 06-data-types-system-tasks-compiler-directives
Malik Tauqir Hasan
 
Assignment11
Sunita Milind Dol
 
Notes: Verilog Part 4- Behavioural Modelling
Jay Baxi
 
Functional programming
Kibru Demeke
 
A recommender system for generalizing and refining code templates
Coen De Roover
 
358 33 powerpoint-slides_1-introduction-c_chapter-1
sumitbardhan
 

Similar to Basic Coding In VHDL COding (20)

DOCX
OVERVIEW OF HARDWARE DESCRIPTION LANGUAGES (HDLs)
Dr.YNM
 
PPTX
Vhdl
AAQIB PARREY
 
PPT
VHDL-PRESENTATION.ppt
Dr.YNM
 
PPT
Spdas2 vlsibput
GIET,Bhubaneswar
 
PDF
INTRODUCTION TO VHDL
karthikpunuru
 
PPTX
Dica ii chapter slides
SIVA NAGENDRA REDDY
 
DOCX
Prilimanary Concepts of VHDL by Dr.R.Prakash Rao
rachurivlsi
 
PPTX
the-vhsic-.pptx
jpradha86
 
PPTX
Digital Electronics .
inian2
 
PDF
Learning vhdl by examples
anishgoel
 
PPTX
VHDL summer training (ppt)
HoneyKumar34
 
PPSX
Vhd lhigh2003
gkumawat
 
PPT
ece223-vhdl-lab1-w07.ppt
MukulKumar972668
 
PPT
ece223-vhdl-lab1-w07.ppt
MukulKumar972668
 
PPTX
Vhdl basic unit-2
Uvaraj Shanmugam
 
PDF
learning vhdl by examples
anishgoel
 
PDF
Vhdl 1 ppg
Akshay Nagpurkar
 
PDF
Introduction to VHDL
Yaser Kalifa
 
PPTX
vhdl
NAGASAI547
 
OVERVIEW OF HARDWARE DESCRIPTION LANGUAGES (HDLs)
Dr.YNM
 
VHDL-PRESENTATION.ppt
Dr.YNM
 
Spdas2 vlsibput
GIET,Bhubaneswar
 
INTRODUCTION TO VHDL
karthikpunuru
 
Dica ii chapter slides
SIVA NAGENDRA REDDY
 
Prilimanary Concepts of VHDL by Dr.R.Prakash Rao
rachurivlsi
 
the-vhsic-.pptx
jpradha86
 
Digital Electronics .
inian2
 
Learning vhdl by examples
anishgoel
 
VHDL summer training (ppt)
HoneyKumar34
 
Vhd lhigh2003
gkumawat
 
ece223-vhdl-lab1-w07.ppt
MukulKumar972668
 
ece223-vhdl-lab1-w07.ppt
MukulKumar972668
 
Vhdl basic unit-2
Uvaraj Shanmugam
 
learning vhdl by examples
anishgoel
 
Vhdl 1 ppg
Akshay Nagpurkar
 
Introduction to VHDL
Yaser Kalifa
 
Ad

Recently uploaded (20)

PPTX
MPMC_Module-2 xxxxxxxxxxxxxxxxxxxxx.pptx
ShivanshVaidya5
 
DOCX
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
PPTX
GitOps_Repo_Structure for begeinner(Scaffolindg)
DanialHabibi2
 
PDF
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
PPTX
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
PDF
6th International Conference on Machine Learning Techniques and Data Science ...
ijistjournal
 
PDF
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
PPTX
Server Side Web Development Unit 1 of Nodejs.pptx
sneha852132
 
PDF
GTU Civil Engineering All Semester Syllabus.pdf
Vimal Bhojani
 
PDF
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
PPTX
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
PDF
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
PPTX
Break Statement in Programming with 6 Real Examples
manojpoojary2004
 
PPTX
Thermal runway and thermal stability.pptx
godow93766
 
PPTX
原版一样(Acadia毕业证书)加拿大阿卡迪亚大学毕业证办理方法
Taqyea
 
PPTX
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
PPTX
MobileComputingMANET2023 MobileComputingMANET2023.pptx
masterfake98765
 
PPT
PPT2_Metal formingMECHANICALENGINEEIRNG .ppt
Praveen Kumar
 
PPTX
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
PPTX
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
MPMC_Module-2 xxxxxxxxxxxxxxxxxxxxx.pptx
ShivanshVaidya5
 
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
GitOps_Repo_Structure for begeinner(Scaffolindg)
DanialHabibi2
 
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
6th International Conference on Machine Learning Techniques and Data Science ...
ijistjournal
 
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
Server Side Web Development Unit 1 of Nodejs.pptx
sneha852132
 
GTU Civil Engineering All Semester Syllabus.pdf
Vimal Bhojani
 
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
Break Statement in Programming with 6 Real Examples
manojpoojary2004
 
Thermal runway and thermal stability.pptx
godow93766
 
原版一样(Acadia毕业证书)加拿大阿卡迪亚大学毕业证办理方法
Taqyea
 
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
MobileComputingMANET2023 MobileComputingMANET2023.pptx
masterfake98765
 
PPT2_Metal formingMECHANICALENGINEEIRNG .ppt
Praveen Kumar
 
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
Ad

Basic Coding In VHDL COding

  • 1. BASIC CODING IN VHDL USING QUARTUS SOFTWARE SUBMITTED BY RAJA.I (IV - ECE) DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING
  • 3. VHDL stands for very high-speed integrated circuit hardware description language. It is a programming language used to model a digital system by dataflow, behavioral and structural style of modeling. This language was first introduced in 1981 for the department of Defense (DoD) under the VHSIC program.
  • 4. In VHDL an entity is used to describe a hardware module. An entity can be described using, Entity declaration Architecture Configuration Package declaration Package body
  • 5. It defines the names, input output signals and modes of a hardware module. Syntax: entity entity_name is Port declaration; end entity_name; IN -read OUT-write INOUT-both read and write
  • 6. Architecture can be described using structural, dataflow, behavioral or mixed style. Architecture declarative part may contain variables, constants, or component declaration. Syntax: architecture architecture_name of entity_name architecture_declarative_part; begin Statements; end architecture_name;
  • 7. entity entity-name is [port(interface-signal-declaration);] end [entity] [entity-name]; architecture architecture-name of entity-name is [declarations] begin architecture body end [architecture] [architecture-name];
  • 8. In this modeling style, the flow of data through the entity is expressed using concurrent (parallel) signal. The concurrent statements in VHDL are WHEN and GENERATE. USED TO: The GENERATE statement; The BLOCK statement The WHEN statement
  • 9. Library ieee; use ieee.std_logic_1164.all; entity and11 is port(x,y:in bit ; z:out bit); end and1; architecture raja of and11 is begin z<=x and y; end raja;
  • 10. In this modeling style, the behavior of an entity as set of statements is executed sequentially in the specified order. Only statements placed inside a PROCESS, FUNCTION, or PROCEDURE are sequential. PROCESSES, FUNCTIONS, and PROCEDURES are the only sections of code that are executed sequentially. However, as a whole, any of these blocks is still concurrent with any other statements placed outside it. One important aspect of behavior code is that it is not limited to sequential logic. Indeed, with it, we can build sequential circuits as well as combinational circuits.
  • 11. TRUTH TABLE A B Q 0 0 0 0 1 0 1 0 0 1 1 1 AND GATE
  • 12. Library ieee; use ieee.std_logic_1164.all; entity and1 is port(x,y:in bit ; z:out bit); end and1; architecture virat of and1 is begin process(a,b) begin if(a='0') y<=0; else if(a<b); end if; end if; end process; end virat;
  • 13. In this modeling, an entity is described as a set of interconnected components. A component instantiation statement is a concurrent statement. Therefore, the order of these statements is not important. The structural style of modeling describes only an interconnection of components (viewed as black boxes), without implying any behavior of the components themselves nor of the entity that they collectively represent.
  • 15. Library ieee; use ieee.std_logic_1164.all; entity half_adder is port(a,b:in bit; sum,carry:out bit); end half_adder; architecture data of half_adder is begin sum<= a xor b; carry <= a and b; end data;
  • 16.  Standard language  Powerful and versatile description language  Multiple machanisms to support design hierarchy  Versatile design reconfiguration support  Support for multiple levels of abstaction
  • 17.  Controlling functionality  State machines  Bus protocolls and  Interfaces