Design the FSMD (Finite State Machine with Datapath) that implements the following simple algorithm expressed in Python. The inputs a,b,c,d the variables x are signed integers. You are free to design a Moore or a Mealy type FSMD. Specify which type you choose. N.B. Design the FSMD as a graph only, you do not need to design the control FSM and the datapath circuit. 5 of 4 Exam set continues next page while True: if a>b:c=b% a elif a<b : c=a * b else: c=a/3a=a−1b=b+4
Q. Design the FSMD (Finite State Machine with Datapath) that implements the following simple algorithm expressed in Python. The inputs a,b,c,d the variables x are signed integers. You are free to design a Moore or a Mealy type FSMD. Specify which type you choose. N.B. Design the FSMD as a graph only, you do not need to design the control FSM and the datapath circuit. 5 of 4 Exam set continues next page while True: if a>b:c=b% a elif a<b : c=a * b else: c=a/3a=a−1b=b+4
Identify Conditions and Actions: Identify the conditions and actions for the FSMD based on the Python code.
Choose FSMD Type: Choose the type of FSMD. I'll go with a Mealy Machine because the output depends directly on the input and the state.
Design States: Design the states for the FSMD.
Draw Transitions: Draw the transitions based on the conditions.
Label Transitions: Label the transitions with appropriate conditions and actions.
More problems from One-step inequalities: word problems