









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
VHDL
PROCESS
Statement I
-^ Another way to model digital circuits behaviorally•^ The
PROCESS
construct is itself concurrent
-^ What statements are permitted within aprocess?
Only sequential
statements like…
-^ A <= B
VHDL
PROCESS
Statement III
-^ Once a
PROCESS
statement activates
-^ process evaluation
-^ Example
:
PROCESS
-^ Comb. Logic outputs are function of all inputs -^ Outputs always evaluated any time inputs change -^ Implementing comb. logic using
PROCESS
es:
-^ Sensitivity list must have all input values. Why? -^ Process must evaluate any time any of the inputs change -^ Outputs must be assigned a
ARCHITECTURE
Behavior
OF^
Example
IS
BEGINPROCESS
( A,
B, C )
BEGIN
X <= (A
AND
B)^
OR^ C;
Y <= (A
OR^
C )^
AND^
B;
END PROCESS
;
END ARCHITECTURE
Behavior;
-^ Don’t forget to assign a “final” value when using^ CASE
Behavior
OF^
Example
IS
BEGINPROCESS
( A, B )
BEGIN
IF^ A = B
THEN AEqB <= ‘1’; END IF; END PROCESS
;
END ARCHITECTURE
Behavior;
Most Useful Flip Flops
-^ Pop Quiz: - What is the
D-FF with Asynchronous Reset
VHDL Code
DFlipFlop
Reset,
Clock
DFlipFlop;
(^ )
Behavior
flipflop
(^ Reset,
Clock
IF^ Reset
Clock'EVENT
Clock
Behavior
Clk^
D x ↓ ↑ (^0) ↑ 1
Q^ t^^1 +(^ ) Q^ t ( )^01
Reset^100
x 0
0 x
Finite State Machines (FSM)
Hardware Organization Next StateComb. Logic
Finite State Machines
Design Using VHDL
-^ Next State Combinational Logic - Use a
Outputs = F(Inputs, Present State)
-^ State Register - Use a Process Statement -^ If synch. Reset, PROCESS sensitive only to Clock•^ If asynchronous Reset, PROCESS sensitive to Reset and Clock
- S - S Memory Controller
BusID[7:0]
Address
Data
Address Bus
ReadWriteBurstReadyReset^ Clock^ Memory Controller
Memory Array
WriteEnOutEn Offset[1:0]^ Done
Memory Controller FSM
IDLE
READ
Reset (
synchronous
)
Ready / Done
Ready · Burst / Done
Ready / WriteEn
Ready / OutEn
(BusID == 0xFC) · Ready · ReadWrite / OutEn
(BusID == 0xFC) · Ready · ReadWrite / WriteEn
BURSTREAD 1
BURSTREAD 2
BURSTREAD 3
Ready · Burst / OutEn, Offset = 0x1^ Ready / OutEn, Offset = 0x
Ready / OutEn, Offset = 0x
Ready / OutEn, Offset = 0x
Ready / OutEn, Offset = 0x
Ready / OutEn, Offset = 0x
Ready / Done