Question

In: Electrical Engineering

Advanced Digital System Design Build a 1-bit subtractor and scale it up to become an 8-bit...

Advanced Digital System Design
Build a 1-bit subtractor and scale it up to become an 8-bit subrtactor. Include truth tables and gate level diagrams for the 1-bit version.

Solutions

Expert Solution

Binary Subtraction can take many forms but the rules for subtraction are the same whichever process you use. As binary notation only has two digits, subtracting a “0” from a “0” or a “1” leaves the result unchanged as 0-0 = 0 and 1-0 = 1. Subtracting a “1” from a “1” results in a “0”, but subtracting a “1” from a “0” requires a borrow. In other words 0 – 1requires a borrow.

0 1 1 (borrow)1→ 0
– 0 – 0 – 1 – 1
0 1 0 1

For the simple 1-bit subtraction problem above, if the borrow bit is ignored the result of their binary subtraction resembles that of an Exclusive-OR Gate. To prevent any confusion in this tutorial between a binary subtractor input labelled, B and the resulting borrow bit output from the binary subtractor also being labelled, B, we will label the two input bits as X for the minuend and Y for the subtrahend. Then the resulting truth table is the difference between the two input bits of a single binary subtractor is given as:

Symbol Truth Table

2-input Ex-OR Gate

Y X Q
0 0 0
0 1 1
1 0 1
1 1 0

An n-bit Binary Subtractor

As with the binary adder, we can also have n number of 1-bit full binary subtractor connected or “cascaded” together to subtract two parallel n-bit numbers from each other. For example two 4-bit binary numbers. We said before that the only difference between a full adder and a full subtractor was the inversion of one of the inputs.

So by using an n-bit adder and n number of inverters (NOT Gates), the process of subtraction becomes an addition as we can use two’s complement notation on all the bits in the subtrahend and setting the carry input of the least significant bit to a logic “1” (HIGH).

for 8 bit subtractor n will be 8 and the circuit diagram will look like this


Related Solutions

Design and build an 8 bit Digital to Analog Converter using the LM741 OP Amp in...
Design and build an 8 bit Digital to Analog Converter using the LM741 OP Amp in Multisim software. Analyze the system using 1000 1000, 1111 1110, and other four different byte values.
Using full adders and some other gates, design subtractor that subtracts an 8-bit binary number [Y7...
Using full adders and some other gates, design subtractor that subtracts an 8-bit binary number [Y7 …. Y0] from 8-bit binary number [X7 … X0]. Write necessary equations. Draw detailed circuit diagram and explain steps & write verilog code
Procedure a. Design and build a circuit based on the subtractor adder to implement the following...
Procedure a. Design and build a circuit based on the subtractor adder to implement the following equation: Y=2X +1.5 b. Check the operation of the circuit, entering 10 different values ​​of X and measuring the result obtained in Y. Use a source of +-15 volts to polarize the circuit c. Graph the results and obtain the equation of that graph.
Design of 4 Bit Adder/Subtractor using Loops (Behavior Modeling Style) (verilog Code) -
Design of 4 Bit Adder/Subtractor using Loops (Behavior Modeling Style) (verilog Code) -
Design a 3-bit 2’s complement adder/subtractor with overflow flag detection Design and simulate a structural model...
Design a 3-bit 2’s complement adder/subtractor with overflow flag detection Design and simulate a structural model (not behavioral) of a 3-bit Adder/Subtractor). Use the 3-bit carry propagate adder of the project as a module for your adder/subtractor. The inputs A and B should be positive binary numbers where vector B must be converted to a negative 2's complement when a subtraction operation is configured. When m=0 it should perform and addition (A+B) and if m=1 it should perform a subtraction...
Using two SN74LS169 modules to build an 8-bit binary UP/DOWN counter. 1. Show the block diagram...
Using two SN74LS169 modules to build an 8-bit binary UP/DOWN counter. 1. Show the block diagram of your design
Design an 8-bit ALU Circuit diagram,
Design an 8-bit ALU Circuit diagram,
Design an 8-bit adder. Show Verilog code and testbench.
Design an 8-bit adder. Show Verilog code and testbench.
Advanced Digital Design is analyzing a capital investment project for using new computing technology to reduce...
Advanced Digital Design is analyzing a capital investment project for using new computing technology to reduce current operating costs. The new computing technology will have a five-year life with no salvage value at the end of five years. Advanced Digital Design’s cost of capital is 12%. Relevant cash flows and present value factors for 5 years @ 12% are as follows: Investment in computer technology = $500,000. Annual net cash savings from new computer technology = $135,000. Salvage value of...
(i) Design an 8-bit ripple adder which can add together two 8-bit numbers, inside a hierarchical...
(i) Design an 8-bit ripple adder which can add together two 8-bit numbers, inside a hierarchical block. Explain your design. Name your block with your student number: eg “123456 ripple adder”. (ii) Test your circuit in block form, showing four example additions with manual calculations to show they are correct. [
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT