Electrical Engineering (EE) Exam  >  Electrical Engineering (EE) Notes  >  Analog and Digital Electronics  >  Introduction to Combinational Logic

Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE) PDF Download

Combinational logic has many uses in electronic systems. It is used to carry out the essential arithmetic, not only in computers and calculators, but also in navigation systems, robots and many other types of automatic machinery. However complex such calculations need to be, they all depend on some basic combinational logic circuits to carry out binary addition and subtraction. This arithmetic is discussed in Digital Electronics Module 1 Number Systems'

Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE)

Logical Decisions

Mathematics and logical decision making also uses combinational logic in the form of Comparators,  These circuits decide whether one value is the same, larger or smaller than another value.

Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE)

Data Routing

 After making a logical decision, data may need to be routed to different parts of the electronic system, this routing is controlled by more combinational logic circuits such as the data selectors, multiplexers and demultiplexers 

Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE)

Encoding and Decoding

When connecting a logic circuit with the outside world, the incoming information from a keyboard or other input device will almost invariably need to be changed (encoded) into an appropriate binary form. Also before binary data produced by the digital system can be used by an output device, such as a display, it must be decoded into a form that can be used by the display. Encoders and decoders used for such jobs are also combinational logic circuits.

Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE)

The combinational logic circuits

The combinational logic circuits are the circuits that contain different types of logic gates. Simply, a circuit in which different types of logic gates are combined is known as a combinational logic circuit. The output of the combinational circuit is determined from the present combination of inputs, regardless of the previous input. The input variables, logic gates, and output variables are the basic components of the combinational logic circuit. There are different types of combinational logic circuits, such as Adder, Subtractor, Decoder, Encoder, Multiplexer, and De-multiplexer.

There are the following characteristics of the combinational logic circuit:

  • At any instant of time, the output of the combinational circuits depends only on the present input terminals.
  • The combinational circuit doesn't have any backup or previous memory. The present state of the circuit is not affected by the previous state of the input.
  • The n number of inputs and m number of outputs are possible in combinational logic circuits.

Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE)The 'n' input variable comes from the external source while the 'm' output variable goes to the external destination. In many applications, the source or destinations are storage registers.

Half Adder

The half adder is a fundamental component in computer arithmetic, responsible for adding two individual binary digits. When we have two binary digits, A and B, the half adder combines them using a circuit that produces two outcomes: the sum and the carry. The carry accounts for any excess resulting from the addition of these two numbers. This concept is visually illustrated in the block diagram shown below.

Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE)

Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE)Truth Table for Half Adder

Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE)Half Adder - Logic Circuit

The sum S is represented by the Boolean Expression S = A'B + AB' and C = AB

Full Adder

The half adder is used to add only two numbers. To overcome this problem, the full adder was developed. The full adder is used to add three 1-bit binary numbers A, B, and carry C. The full adder has three input states and two output states i.e., sum and carry.

Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE)Half adder + Cin = Full Adder

The next truth table shown here demonstrates all the possible outputs for various input combinations with the carry input digit:

Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE)Truth Table - Full Adder

Boolean expression for the full adder is S = A'B'Cin + A'BCin' + AB'Cin' + ABCin and C = A'BCin + AB'Cin + ABCin' + ABCin. This is where A and B are all the possible binary inputs and C is the carry in. For example, if A is 0 and B is 0 and the Cin is 1, then:

S = (0'0'1)+(0'01')+(00'1')+(001) = (111)+(100)+(010)+(001) = (1)+(0)+(0)+(0) = 1

C = (0'01)+(00'1)+(001')+(001) = (101)+(011)+(000)+(001) = (0)+(0)+(0)+(0) = 0

S = 1 and C = 0

Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE)Full Adder - Logic Circuit

Subtractors

A subtractor serves the purpose of deducting one numerical value from another. In the context of binary arithmetic, subtraction is accomplished using the 1's complement and 2's complement representations of the numbers involved. This process requires the manipulation of three key binary bits: the minuend (X), the subtrahend (Y), and the borrow (Bi), which is derived from the preceding bit's result. The outcome of this operation is twofold: it yields the difference (D) and also provides the next borrow bit (Bout).

Half Subtractors

The half subtractor is also a building block of subtracting two binary numbers. It has two inputs and two outputs. This circuit is used to subtract two single bit binary numbers A and B. The 'diff' and 'borrow' are the two output state of the half adder.

Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE)Half Subtractor - Logic Circuit

Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE)Truth Table - Half Subtractor

The Boolean expressions are as follows:

D = X'Y + XY'

Bout = X'Y

Example: If our inputs X and Y are 0 and 1, then compliment of 0 is 1 and vice versa.

D = (0'1)+(01') = (11)+(00) = 1 and Bout = (0'1) = (11) = 1

Full Subtractor

The Half Subtractor is used to subtract only two numbers. To overcome this problem, full subtractor was designed. The full subtractor is used to subtract three 1-bit numbers A, B, and C, which are minuend, subtrahend, and borrow, respectively. The full subtractor has three input states and two output states i.e., diff and borrow.

Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE)Full Subtractor - Logic Circuit

Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE)Truth Table - Full Subtractor

Multiplexers

The multiplexer is a combinational circuit that has n-data inputs and a single output. It is also known as the data selector which selects one input from the inputs and routes it to the output. With the help of the selected inputs, one input line from the n-input lines is selected. The enable input is denoted by E, which is used in cascade.

Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE)

De-multiplexers

A De-multiplexer performs the reverse operation of a multiplexer. The de-multiplexer has only one input, which is distributed over several outputs. One output line is selected at a time by selecting lines. The input is transmitted to the selected output line.

Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE)

Decoder

A decoder is a combinational circuit having n inputs and to a maximum of m = 2n outputs. The decoder is the same as the de-multiplexer. The only difference between de-multiplexer and decoder is that in the decoder, there is no data input. The decoder performs an operation that is completely opposite of an encoder.

Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE)

Encoder

The encoder is used to perform the reverse operation of the decoder. An encoder having n number of inputs and m number of outputs is used to produce m-bit binary code which is related to the digital input number. The encoder takes the digital word and converts it into another digital word.

Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE)

The document Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE) is a part of the Electrical Engineering (EE) Course Analog and Digital Electronics.
All you need of Electrical Engineering (EE) at this link: Electrical Engineering (EE)
135 videos|167 docs|71 tests

FAQs on Introduction to Combinational Logic - Analog and Digital Electronics - Electrical Engineering (EE)

1. What is combinational logic?
Ans. Combinational logic refers to a type of digital logic circuit where the output is solely determined by the current input values. It does not have any memory or feedback, meaning that the output is purely based on the combination of inputs at any given moment.
2. What are the basic components of combinational logic circuits?
Ans. The basic components of combinational logic circuits are logic gates. These gates include AND, OR, NOT, XOR, NAND, NOR, and XNOR gates. These gates perform logical operations on input signals to produce the desired output.
3. How does a combinational logic circuit differ from a sequential logic circuit?
Ans. A combinational logic circuit produces an output based solely on the current input values, whereas a sequential logic circuit takes into account both the current input values and the past input values. Sequential logic circuits have memory elements, such as flip-flops, which allow them to store and remember previous states.
4. What are the advantages of using combinational logic circuits?
Ans. Combinational logic circuits are advantageous in various ways. They are simple to design and implement, require fewer components, and have a faster response time compared to sequential logic circuits. Combinational circuits are also used in arithmetic and logic operations, making them essential in digital systems.
5. Can combinational logic circuits be used in complex systems?
Ans. Yes, combinational logic circuits can be used in complex systems. By combining multiple logic gates and designing them in a hierarchical manner, complex functions and operations can be achieved. However, it is important to note that combinational logic circuits alone may not be sufficient for certain complex systems, and sequential logic circuits may also be required for memory and feedback purposes.
Related Searches

mock tests for examination

,

Semester Notes

,

Exam

,

video lectures

,

study material

,

Summary

,

Objective type Questions

,

Previous Year Questions with Solutions

,

pdf

,

shortcuts and tricks

,

Viva Questions

,

ppt

,

Important questions

,

practice quizzes

,

Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE)

,

Sample Paper

,

Extra Questions

,

Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE)

,

MCQs

,

past year papers

,

Introduction to Combinational Logic | Analog and Digital Electronics - Electrical Engineering (EE)

,

Free

;