Question 3:
a)
i) Design a 1-bit full subtractor circuit
ii) Show how the circuit in part a)i) above can be used to design a 4-bit subtractor circuit A-B. Draw the circuit and explain briefly its operation assuming that A=1001 and B=0110
b) For the circuit shown in Fig.Q3, write a Verilog code that describe this circuit. Use continuous assignment statements. Your code should include module definition, port declaration, and any other syntax required to synthesize the code.
c)
i) Design a 1-bit full adder circuit
ii) Design a circuit that computes F=7I, using the fewest number of adders. Input I is a 4-bit number. How many bits are required for the result to avoid overflow?