






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!







1
2
k
1
2
k
I
1
2
m
1
2
n
1
2
m
s’
1
2
m
Output
Logic
Dispense
Coke
Coin
Return
State
Next
Logic
Dime
Quarter
p
Return
Change
StateLogic
Dispense
Coke
40
change
Return
Coins
Write
out
state
transition
table
Write
out
output
function
table
Implement
design
Return
Change
Dispense
Coke
Note:
Outputs
are
now
associated
with
the
transitions/edges
change=
change=
change=
24’h000000, 8’h
24’h000001, 8’h
24’h000002, 8’h
24’h000003, 8’h
24’hFFFFFF, 8’h
24’h000000, 8’h
24’h000001, 8’h
24’h000002, 8’h
24’h000003, 8’h
24’hFFFFFF, 8’h
24’h000000, 8’h
24’h000001, 8’h
24’h000002, 8’h
24’h000003, 8’h
24’hFFFFFF, 8’h
32
states
(over
billion)
pretty hard
to
think
about
24’h000000, 8’hFE 24’h000000, 8’hFF
24’h000001, 8’hFE
24’h000002, 8’hFE
24’h000003, 8’hFE
24’hFFFFFF, 8’hFE
24’h000001, 8’hFF
24’h000002, 8’hFF
24’h000003, 8’hFF
24’hFFFFFF, 8’hFF
Plus
four
bits
of
input
(not
counting reset),
which
means
state
transition
table
needs
36
entries!
000000, 8
,
,
,
, 8
timer+counter states
Massive
Combinatorial
L
i
speed
direction
output
Logic
speed,
direction
output
XOR
counter_go
output
timer
state
+n
counter
state
p
speed
direction,
counter_go