



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




ECE 371: Microprocessor Systems Department of Electrical and Computer EngineeringSchool of Engineering, Mathematics, and Science
Purdue University – Calumet
-^ Defines input and output interface of a design component^ –^
-^ Must have a unique name, must reside in a file with entity name.•^ Ports
or^ INOUT
-^ Data Type:
logicComponent
logicComponent;
-^ Data Type: logicComponent.vhd
dataflow
OF^ logicComponent
-^ Digital logic circuits are described by indicating how the inputs andoutputs of built-in primitive components are connected together.•^ Describes how signals flow through the circuit.^ –^
dataflow; ARCHITECTURE
rtl^ OF
logicComponent
rtl;
-^ Used for internal/intermediate signals within a module’s architecture•^ Designer cannot read ports of mode
-^ Output ports can’t appear on
RHS^ of a concurrent signal assignment statement
-^ Solution
-^ Use an intermediate signal for intermediate storage
then
-^ Assign port of mode
OUT^ to intermediate signal using a concurrent assignment
-^ Example
wrong
OF^ gates
wrong
right
OF^ gates
Yint^
Yint; Yint^ <=
Y^ <=^ Yint; END ARCHITECTURE
right
gates
gates
ARCHITECTURE
behavior
OF^ logicComponent
IS
SIGNAL^
ABC :^ STD_LOGIC_VECTOR
(2^ DOWNTO
0);
ARCHITECTURE
behavior
OF^ logicComponent
IS
SIGNAL^
ABC :^ STD_LOGIC_VECTOR
(2^ DOWNTO
0);
BEGIN^ ABC <= A & B & C;F <= ‘0’
WHEN^ ABC = “000”
OR ABC = “010”
OR ABC = “100”
ELSE^ ‘1’;
END ARCHITECTURE
behavior; SIGNAL^
ABC :^ STD_LOGIC_VECTOR
(2^ DOWNTO
0);
BEGIN^ ABC <= A & B & C;^ WITH
ABC^ SELECT F <= ‘0’^ WHEN
“000”^
|^ “010”
|^ “100”,
‘1’^ WHEN OTHERS
;
END ARCHITECTURE
behavior;