The following diagram is from section 5.7 of Zybbok. It is a soda dispensing machine design, including the State Machine

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

The following diagram is from section 5.7 of Zybbok. It is a soda dispensing machine design, including the State Machine

Post by answerhappygod »

The following diagram is from section 5.7 of Zybbok. It is a
soda dispensing machine design, including the State Machine and the
Datapath. Select the answers that are correct. (multiple
options, wrong answers deduct points).
1-3) Which outputs of the magnitude comparator are used?
4-6) Which datapath output is needed to support the comparison
tot < S?
7-9) If the HLSM is in state DispSoda, tot is 100, and S is 100,
what is the next state?
10-12) In state DispChange, instead of detecting change = 1, if
the HLSM is modified to compute the change value, which components
need to be added to the datapath? Data operation in state
DispChange: CVal = tot - S
only lt
lt and eq
gt
tot_lt_s
tot_ld
tot_lt_eq
DispChange
Wait
Init
Only a subtractor
A subtractor and a register
A subtractor, a register, and a comparator
The Following Diagram Is From Section 5 7 Of Zybbok It Is A Soda Dispensing Machine Design Including The State Machine 1
The Following Diagram Is From Section 5 7 Of Zybbok It Is A Soda Dispensing Machine Design Including The State Machine 1 (101.16 KiB) Viewed 46 times
S А HLSM: Inputs: C, A (8), S (8) Outputs: 0 Variables: tot (8) 8 D tot_ld tot_clr Add Id cir tot_reg Q d = otot -- 5 Init Wait tot = tot +A tot = 0 !c && (tot <S) !c && !(tot <S) DispSoda d = 1 (tot == S) DispChange A B 8-bit A B 8-bit adder S comparator eg totul s fot_ee_spatapath change = 1
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply