Question

In: Electrical Engineering

Please list and describe the THREE major parts of a VHDL program. Describe each of them...

Please list and describe the THREE major parts of a VHDL program. Describe each of them and give an example.

Solutions

Expert Solution

Three major parts of a VHDL program are:

(i) Entity Declaration (ii) Architecture declaration and body (iii) Process block

Additional there are configuration and pakage block.

(i) Entity declaration: It defines the I/O inteface of the intended design or RTL block. It consists of ports declaration of various width and data types like std_logic, std_logic_vector, bit types etc. Direction of data flow on these ports are defined as IN/OUT/INOUT/BUFFER type.

(ii) Architecture declaration: Entity declaration defines only external I/O's of the design where as architecture declares the internal relationship between the output signals and input signals. An architecture body can define the internal organization or function of the entity. Architecture comprises of two parts - declaration & concurrent statements. Declarative part of architecture contains signal, data types, functions, procedure, components etc. declarations whereas concurrent statements are of three types - Behavioral, data flow or structural.

Behavioral type of architecture body only describes expected functionality without any information about hardware where as data flow type consists of signal assignments. A structural model is based on component instantiation and generate statements. A mixed design of behavioral, data flow and structural too can be be used.

(iii) Process : Behavioral description of an entity is supported by process statements. Process statements are sequential in nature and executed in the order they are written. A process may contain sensitive list of signal which initiates execution of sequential statements. Wait statements are used if sensitive list is absent in the process body.

Example: Design of a Two bit full adder using 1 bit full adder. (Structural)

library ieee;

use ieee.std_logic_1164.all --- used to declare all functions to be used in the program

entity fulladder_1bit is

port (a, b, cin : in std_logic;

sum, cout : out std_logic

);

end fulladder_1bit;

architecture arch of fulladder_1bit is

begin ------------- data flow model

sum <= a xor b xor cin;

cout <= ( a and b) or (b and cin) or (a and cin);

end arch;

-------------------------------------------------------------------------------------------------------------------------------------------------

library ieee;

use ieee.std_logic_1164.all     

entity fulladder_2bit is

port ( x, y : in std_logic_vector (1 downto 0);

ci : std_logic;

s : out std_logic_vector(1 downto 0);

co: out std_logic

);

end fulladder_2bit;

architecture struct of fulladder_2bit is

signal c: std_logic;

component fulladder_1bit is

port (a, b, cin : in std_logic;

sum, cout : out std_logic

);

end component;

begin

----------structural describtion by instantiation

u0: fulladder_1bit port map (x(0), y(0), ci, s(0), c);

u1: fulladder_1bit port map (x(1), y(1), c, s(1), co);

end struct;


Related Solutions

What are the various major government spending programs? Please list them and describe them—please take me...
What are the various major government spending programs? Please list them and describe them—please take me through each one, one by one: roughly how much money is spent each year by each program? Why must spending in each program RISE over time? Independent of the emergency spending this year, roughly how much does government spending rise every year? all are in USA
Using pictures and/or diagrams, list and describe the components of each of the three major assemblies...
Using pictures and/or diagrams, list and describe the components of each of the three major assemblies of a Hydraulic Mine Shovel? (6 points)(2.5page minimum) please type your answer, please do not write on the paper and post it
List three (3) methods or techniques for generating business ideas and briefly describe each of them.
List three (3) methods or techniques for generating business ideas and briefly describe each of them.
List and describe the three major types of business financing?
List and describe the three major types of business financing?
1. What are the three inventory accounts? List them, describe them and provide an example of...
1. What are the three inventory accounts? List them, describe them and provide an example of the types of costs included in each inventory account. 2. What is the relevant range? Why would cost behaviour changes outside the relevant range? In your answer, describe an example (or examples) in your response. 3. Compare and contrast committed fixed costs and discretionary fixed costs. in your answer, provide at least one example of each type of cost and explain why it is...
Please briefly discuss each of these topics 1. Describe the filtration membrane, its three parts and...
Please briefly discuss each of these topics 1. Describe the filtration membrane, its three parts and their characteristics. 2. Describe the pressures that promote and oppose glomerular filtration. 3. What is GFR? Discuss the three mechanisms that regulate /influence glomerular filtration rate. 4. Discuss tubular reabsorption in the proximal convoluted tubule. What is the importance of sodium reabsorption as far as reabsorption of other solutes is concerned? 5. What are the substances that are secreted during the process of tubular...
List and describe the parts of a flower.
List and describe the parts of a flower.
List out the branches of genetics and describe each of them in one sentence.
List out the branches of genetics and describe each of them in one sentence.
There are three major reasons why you have to worry about endogeneity problems. List them and...
There are three major reasons why you have to worry about endogeneity problems. List them and briefly discuss the method to resolve each problem.
List and describe the three parts of the product selling model. Be very specific and give...
List and describe the three parts of the product selling model. Be very specific and give detailed examples.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT