Introduction To VHDL
Introduction To VHDL
Objective
VHSIC Hardware
Description Language
--------------------------------------
VHSIC --
Very High Speed Integrated Circuits
Modeling Digital Systems
• Dataflow
• Behavioral
• Structural
BORING sounding??
well, it gets more exciting with the details !!
:)
Modeling the Dataflow way
entity fulladd is
port(A1,A2,Cin: IN std_logic;
Sum, Cout: OUT std_logic);
end fulladd;
Architecture a of fulladd is
Begin
process(A1,A2,Cin)
Begin
Sum <= Cin XOR A1 XOR A2;
Cout <= (A1 AND A2) OR (Cin AND (A1 XOR A2));
end process;
end a;
Modeling Interfaces
Entity declaration
describes the input/output ports of a module
entity reg4 is
port ( d0, d1, d2, d3, en, clk : in bit;
q0, q1, q2, q3 : out bit ); punctuation
end entity reg4;
Initialization phase
each signal is given its initial value
simulation time set to 0
for each process
activate
execute until a wait statement, then suspend
execution usually involves scheduling transactions on
signals for later times
Simulation Algorithm
Simulation cycle
advance simulation time to time of next
transaction
for each transaction at this time
update signal value
event if new value is different from old value
for each process sensitive to any of these events,
or whose “wait for …” time-out has expired
resume
execute until a wait statement, then suspend
Simulation finishes when there are no further
scheduled transactions
Basic Design
Methodology
Requirements
Synthesize
Gate-level
Model Simulate Test Bench
Timing
Model Simulate
VHDL -- conclusion...