Unit 1 (1) Physics Engineering
Unit 1 (1) Physics Engineering
UNDERSTANDING.
Combinational Circuit
circuit, for example encoder, decoder, multiplexer and demultiplexer. Some of the
● The combinational circuit do not use any memory. The previous state
of input does not have any effect on the present state of the circuit.
of outputs.
What is an Adder?
An adder is a digital logic circuit in electronics that is extensively used for
*You can use Kmap also to find equations of sum and carry.
Full Adder
● A full adder is a combinational circuit that forms the arithmetic sum of three bits. It
consists of three inputs and two outputs.
● Two of the input variables, denoted by x and y , represent the two significant bits to
be added. The third input, z , represents the carry from the previous lower significant
position.
● The two outputs are designated by the symbols S for sum and C for carry.
Truth Table
● A binary adder is a digital circuit that produces the arithmetic sum of two binary
numbers. It can be constructed with full adders connected in cascade, with the output
carry from each full adder connected to the input carry of the next full adder in the
chain.
Working:
● The augend bits of A and the addend bits of B are designated by subscript numbers
from right to left, with subscript 0 denoting the least significant bit. The carries are
connected in a chain through the full adders. The input carry to the adder is C0, and it
ripples through the full adders to the output carry C4. The S outputs generate the
required sum bits.
Example
● The bits are added with full adders, starting from the least significant position
(subscript 0), to form the sum bit and carry bit.
● The input carry C0 in the least significant position must be 0. The value of Ci+1 in a
given significant position is the output carry of the full adder.
● This value is transferred into the input carry of the full adder that adds the bits one
higher significant position to the left.
● The sum bits are thus generated starting from the rightmost position and are
available as soon as the corresponding previous carry bit is generated. All the carries
must be generated for the correct sum bits to appear at the outputs.
Block Diagram
Truth Table
K-Map
Logic Diagram
❖ When two numbers with n digits each are added and the sum is a
number occupying n + 1 digits, we say that an overflow occurred.
❖ This is true for binary or decimal numbers, signed or unsigned.
❖ Overflow is a problem in digital computers because the number of bits
that hold the number is finite and a result that contains n + 1 bits cannot
be accommodated by an n -bit word.
❖ The detection of an overflow after the addition of two binary numbers
depends on whether the numbers are considered to be signed or
unsigned.
❖ When two unsigned numbers are added, an overflow is detected from
the end carry out of the most significant position.
❖ In the case of signed numbers, two details are important: the leftmost bit
always represents the sign, and negative numbers are in
2’s-complement form. When two signed numbers are added, the sign bit
is treated as part of the number and the end carry does not indicate an
overflow.
Example addition:
Since the sum of the two numbers is +150, it exceeds the capacity of an
eight-bit register.
Working:
● The two decimal digits, together with the input carry, are first added in
the top four-bit adder to produce the binary sum.
● When the output carry is equal to 0, nothing is added to the binary sum.
● When it is equal to 1, binary 0110 is added to the binary sum through
the bottom four-bit adder.
● The output carry generated from the bottom adder can be ignored,
since it supplies information already available at the output carry
terminal.
Magnitude Comparator
● A magnitude comparator is a combinational circuit that compares two
numbers A and B and determines their relative magnitudes. The
outcome of the comparison is specified by three binary variables that
indicate whether A > B, A = B, or A < B.
Algorithm:
Circuit Diagram:
● For each possible input combination, there are seven outputs that are
equal to 0 and only one that is equal to 1. The output whose value is
equal to 1 represents the minterm equivalent of the binary number
currently available in the input lines
Error in encoder:
● If two inputs are active simultaneously, the output produces an
undefined combination. For example, if D3 and D6 are 1 simultaneously,
the output of the encoder will be 111 because all three outputs are equal
to 1.
Working:
● The higher the subscript number, the higher the priority of the input.
Input D3 has the highest priority, so, regardless of the values of the
other inputs, when this input is 1, the output for xy is 11.
● The output is 10 if D2 = 1, provided that D3 = 0, regardless of the
values of the other two lower priority inputs.
K-Map:
Final equations and logic diagram:
Multiplexers:
● A multiplexer is a combinational circuit that selects binary information
from one of many input lines and directs it to a single output line.
● The selection of a particular input line is controlled by a set of selection
lines.
● There are 2n input lines and n selection lines whose bit combinations
determine which input is selected.
2:1 Mux
Truth table
From Truth table, we can directly write the Boolean function for output, Y as
Block Diagram:
Logic Diagram