Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Design a circuit that adds A+B if BTN2 is pressed, or adds A+B+1 if BTN2 is not pressed. The circuit has an output called
Design a circuit that adds A+B if BTN2 is pressed, or adds A+B+1 if BTN2 is not pressed. The circuit has an output called MSB that indicates when one and only one of the MSBs of the two operands (A and B) are set (equal to 1). Also, when BTN1 is pressed, the circuit first waits for BTN1 to be released. Upon release, the circuit looks for three consecutive additions that generate a carry before it will accept another BTN1 press. When it finds three consecutive additions that generate a carry, it stores the result of the last addition into the result register if it is greater than the current value in the result register and increments a count. After 31 counts, it clears the result register, turns on a done signal (for one clock cycle) and starts the count over again. The output of the result register is an output of the circuit. Draw a fully labeled structural model and FSM state diagram for this design. The top level black box diagram is provided. Use may only use standard digital models and gates in your design. State any assumptions. clk A B BTN1 result done MSB BTN2 Quiz 7
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started