(a)
(b)
STATE TABLE
STATE |
PRESENT STATE |
NEXT STATE |
BCD OUTPUT |
|||||||
Q2 |
Q1 |
Q0 |
Q2+ |
Q1+ |
Q0+ |
D3 |
D2 |
D1 |
D0 |
|
S0 |
0 |
0 |
0 |
0 |
0 |
1 |
0 |
0 |
1 |
1 |
S1 |
0 |
0 |
1 |
0 |
1 |
0 |
0 |
0 |
0 |
1 |
S2 |
0 |
1 |
0 |
0 |
1 |
1 |
0 |
1 |
0 |
0 |
S3 |
0 |
1 |
1 |
1 |
0 |
0 |
0 |
0 |
0 |
1 |
S4 |
1 |
0 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
S5 |
1 |
0 |
1 |
1 |
1 |
0 |
1 |
0 |
0 |
1 |
S6 |
1 |
1 |
0 |
1 |
1 |
1 |
0 |
0 |
1 |
0 |
S7 |
1 |
1 |
1 |
0 |
0 |
0 |
0 |
1 |
1 |
0 |
Question 4 State Machines (25 marks) A state machine is required to generate the first 8...
Question 4 State Machines (25 marks) A state machine is required for a simple vending machine. The machine takes one dollar coins only. Each time a coin is added the input signal "coin" is set to 1 for one clock cycle When a total of $4 has been added the output signal "deliver" is set to 1 for one clock cycle and the state machine starts counting coins for the next delivery a) (5 marks) Draw a state diagram for...
Question 4 State Machines (25 marks) a. (5 marks) A 3-bit Gray code counter advances on positive clock edges and generates outputs in the sequence: 000, 001, 011, 010, 110, 111, 101, 100. Draw the assigned state table for a state machine implementing this counter. b. (10 marks) For the Gray code counter in part a, derive (unoptimised) equations for the next state as a function of the current state. c. (10 marks) Consider the following sequence detector. In each...
4. Create a 1-hot implementation of the traffic light state machine from problem #2 (a) Create the state table with state assignments, showing the next states as a function of the input and the outputs as a function of the present state. (b) Determine the logic equations for the next state inputs to the flops, and for the six output control signals. 4. Create a 1-hot implementation of the traffic light state machine from problem #2 (a) Create the state...
It has four output patterns: 000, 001, 0111 Tho Te two control signals e counter counts when it is 1 and the counter pauses when it is 0 e counter "increases" (circulating through 000, 0011, 01, 111 and .....pping around) when it is 1 and go is 1. The counter "decreases" (circulating in a reversed pattern, ie., 1 1 11, 01 11, 0011, 0001, and wrapping around) when it is 0 and g0 is l The circuit can be constructed...
Just need the code for the random counter,Thanks Objective: In this lab, we will learn how we can design sequential circuits using behavioral modelling, and implementing the design in FPGA. Problem: Design a random counter with the following counting sequence: Counting Sequence: 04 2 9 168573 Design Description: The counter has one clock (Clock), one reset (Reset), and one move left or right control signal (L/R) as input. The counter also has one 4bit output O and one 2bit output...
3. Finite State Machine. Using a ROM based finite state machine (FSM), design a bi-directional repetitive 3-bit modulo-6 (0,1,2,3,4,5) counter (see Table 3). The design has one input named Dir and three outputs named B2, B1 and BO. The outputs (B2, B1 and BO) are dependent upon being in the present state only. After each clock pulse, when Dir is at logic "O', the outputs (B2, B1, BO) step through the count sequence in following order:- 0,1,2,3,4,5. After each clock...
2. To demonstrate a Mealy state machine, let's design a simple arbiter between two requesting entities. We're going to have two request inputs: reqA and reqB. And two outputs: grantA and grantB. Any combination of requests can be asserted at any time: one of them, both of them, or neither. But at most only one grant can be asserted in any given cycle; if neither request is asserted then neither grant should be asserted. We'll need a state machine to...
2. To demonstrate a Mealy state machine, let's design a simple arbiter between two requesting entities. We're going to have two request inputs: reqA and reqB. And two outputs: grantA and grantB. Any combination of requests can be asserted at any time: one of them, both of them, or neither. But at most only one grant can be asserted in any given cycle; if neither request is asserted then neither grant should be asserted. We'll need a state machine to...
Help me fast thanks please 3. A state machine with output Z is implemented using the circult shown in FIGURE Q3. FIGURE Q3 a Identify whether it is a Mealy or a Moore Machine Justify your answer. [4 mark] b D etermine the flip-flops inputs equations and output equation Z [10 marks) Based on your answer in part (b) derive the next-state maps and find the state table for the sale machine [18 marks] d. Based on your answer in...
a) A synchronous finite state machine (FSM) is described by the state table in Fig. 3. Show how redundant states may be found and eliminated to minimise this FSM. [15 marks) b) Derive Boolean equations for the implementation of the reduced FSM. (15 marks] Next state Output Current X1Xo state 00 01 11 10 Z1Zo A A F E C 00 B C B A 01 F A B C 00 G DİACİ 10 Figure 3 Tum over... a) A...