Assignment4
Assignment4
Submission instructions:
- Please include a statement of originality in your assignment, on top of your name and student ID.
- Please show all solution steps for each question. Note that only stating the final answers would
not result in any mark.
- Please convert your assignment to pdf format before submission.
- It is recommended that you state each question followed by its solution, so that you can ensure
that the marker won’t skip any of your solutions.
- Please submit your assignment through Moodle way before the deadline.
2. Design a combinational circuit with a 4-bit input A (A3A2A1A0) and a 5-bit output B
(B4B3B2B1B0), where each value of B must be according to the following equation B = A × 2.
Your design must include a truth table, K-maps, simplified Boolean equations, and final circuit.
After you complete your design, indicate your comment. (10 points)
3. Design a combinational circuit that converts a 4-bit input to its 2’s complement form. (10
points)
5. Design an 8-bit Adder/Subtractor with overflow detection using Full Adders. Assume the FA
block is already available, so no need for a truth table and a k-map.
Use the following 8-bit inputs A = 𝑎7 𝑎6 𝑎5 𝑎4 𝑎3 𝑎2 𝑎1 𝑎0 , B = 𝑏7 𝑏6 𝑏5 𝑏4 𝑏3 𝑏2 𝑏1 𝑏0, where A
and B are the numbers to be added or subtracted, and a one bit input M to indicate the mode
(adder or subtractor). In the case of subtraction, use A as the minuend and B is the subtrahend.
Use the following 8-bit output S = 𝑆7 𝑆6 𝑆5 𝑆4 𝑆3 𝑆2 𝑆1 𝑆0 to indicate the sum result, and the
one-bit output C for the final carry out, and the one-bit output V for overflow. (7×4 = 21 points)