Vhdl organization and architecture
Download
1 / 13

VHDL ORGANIZATION AND ARCHITECTURE - PowerPoint PPT Presentation


  • 105 Views
  • Uploaded on

VHDL ORGANIZATION AND ARCHITECTURE. FREDY AGUAS GINETH BUSTOS. VHDL.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' VHDL ORGANIZATION AND ARCHITECTURE' - syshe


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Vhdl organization and architecture

VHDL ORGANIZATION AND ARCHITECTURE

FREDY AGUAS

GINETH BUSTOS


VHDL

VHDL (VHSIC Hardware Description Language) is a hardware description language used in electronic design automation to describe digital and mixed-signal systems such as field-programmable gate arrays and integrated circuits. VHDL can also be used as a general purpose parallel programming language.


There are five types of design units in vhdl
There are five types of design units in VHDL

  • entitydeclaration

  • Architecture

  • Configuration

  • packagedeclaration

  • packagebody


Entity
Entity

A VHDL entity specifies the name of the entity, its ports and all information related to it.

Entity led is

Port (A,B,C: in STD_LOGIC;

F: out STD_LOGIC);

End led;


Entity port i o
Entity: Port I / O

Port: input or output. All ports must have: name, data type and mode



Declaration of entities through libraries and packages
Declaration of entities through libraries and packages

  • Librerías IEEE y WORK.

  • IEEE: paquete std_logic_1164

  • WORK: numeric_std, std_arith.

  • Paquete: containspresetalgorithms


Architecture
Architecture

In general, programming styles used in architectures el desingknow classified as

  • Functional (Behavioral). Defines a process described sequentially.

  • Data Flow (Dataflow). Includes structure and behavior

  • Structural (Structural). Defining interconnections and components.


Functional behavioral
Functional (Behavioral)

architecture ARQ1 of COMPARA is

begin

process(A,B)

begin

if(A=B) then

C <= ‛1’ after 1 ns;

else

C <= ‛0’ after 2 ns;

endif;

endprocess;

EndARQ1


Data flow dataflow
Data Flow (Dataflow)

Entity XR2 is

generic (m: time := 1.0 ns); -- Tiempo de retardo

port (X,Y: in bit; Z: out bit);

End XR2;

architecture DATAFLOW of XR2 is

begin

Z <= X xor Y after m; --Retardo genérico

end DATAFLOW;


Structural
Structural

Entity COMPARA is --Entity

port (A,B: in bit; C: out bit);

End COMPARA;

architecture STRUCT of COMPARA is

SIGNAL I: bit; --Declaration of

components

component XR2 port (x,y: in bit; z: out bit); end component;

component INV port (x: in bit; z: out bit); end component;

begin

U0: XR2 portmap (A,B,I); --Components U1: INV portmap (I,C) --utilizadosendSTRUCT;


Architecture1
Architecture

It is the structure that defines the operation of an entity.

ARCHITECTURE dataflow of mux IS

SIGNAL select : INTEGER;

BEGIN

select <= 0 WHEN s0 = „0‟ AND s1 = `0´ELSE

1 WHEN s0 = „1‟ AND s1 = `0´ELSE

2 WHEN s0 = „0‟ AND s1 = `1´ELSE

3 ;

z <= a AFTER 0.5 NS WHEN select = 0 ELSE

b AFTER 0.5 NS WHEN select = 1 ELSE

c AFTER 0.5 NS WHEN select = 2 ELSE

d AFTER 0.5 NS;

END dataflow;



ad