Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Sandwich: Design a combinational circuit which receives as input three N bit var

ID: 2990642 • Letter: S

Question

Sandwich: Design a combinational circuit which receives as input three N bit variables in 2's compliment form: A, B, and C and outputs 1 if and only if A >= B >= C. Namely, the output is 1 if and only if the 2's complement value of B is sandwiched between those of A and C. Construct the circuit to work for all possible values of A, B, and C (positive and negative) in the range [-2^N-1,... , 2^N-1 - 1]. 4. AB flip-flop: An ''AB flip-flop'' receives as input a CLK variable (clock) and 2 single bit variables A and B. It updates the memory Q on the rising edge of CLK according to the following logic: (a) If A = B = 0 then Q = Qprev (i.e., Q retains its previous value). (b) If A = 1 and B = 0 then Q = 1. (c) If A = 0 and B = 1 then Q = 0. (d) If A = B = 1 then Q = bar Qprev (i.e., Q takes the NOT value of its previous state). Design an AB flip-flop using a D flip-flop and additional primitives of combinational logic. 5. Two-input toggle flip-flop: Design a 2 bit flip-flop (holding bits Q1 and Q2) that has four single bit inputs CLK, R (for Reset), T (for Toggle), A and follows the functionality specified by the truth table below: Namely, when R = 1 the value of Q1 and Q2 are both set to 1. When R = 0 and T = 0 the value of Q1 is unchanged (that is, Q1 = Q1:prev) and that of Q2 is set to A. When R = 0 and T = 1 the value of Q1 is set to A and that of Q2 is unchanged (that is, Q2 = Q2:prev). The flip-flop should change the value of the output wires Q1 and Q2 on the rising edge of CLK.

Explanation / Answer

sent!

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote