Multiplexer – Programmerbay https://programmerbay.com A Tech Bay for Tech Savvy Mon, 04 Jul 2022 06:18:29 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 https://programmerbay.com/wp-content/uploads/2019/09/cropped-without-transparent-32x32.jpg Multiplexer – Programmerbay https://programmerbay.com 32 32 Construct 3 to 8 decoder with truth table and logic gates https://programmerbay.com/construct-3-to-8-decoder-with-truth-table-and-logic-gates/ https://programmerbay.com/construct-3-to-8-decoder-with-truth-table-and-logic-gates/#respond Mon, 12 Oct 2020 18:16:00 +0000 http://programmerbay.com/?p=3108

Decoder is also a Combinational circuit which transforms given inputs to a maximum number of outputs (maximum outputs equal to 2n and n are given inputs ).

In other words, a decoder can be defined as a logic circuit that receives binary input and produces output corresponding to that very binary input.

A block diagram of decoder consists of n input lines, one or more enable inputs and 2n maximum number of output lines.

To construct a decoder, we require to know the number of all possible output lines that totally depends on the given input.

So, if n represents given input lines then possible output lines would be 2n.
Decoder with three inputs would give 8 outputs (n=2,2that is 8).

In this article, we’ll be going to design 3 to 8 decoder step by step.

Here are the steps to Construct 3 to 8 Decoder

Step 1. Now we know possible outputs for 3 inputs, so construct 3 to 8 decoder, having 3 input lines, a enable input and 8 output lines.

In the below diagram, given input represented as I2Iand I, all possible outputs named as  O0, O1, O2,O3O4, O5,O6 Oand a E were represented by Enable input.

With Enable input

3 2Bto 2B8 2Bdecoder 2BFlow2code.png

Without Enable input

new




Step 2. Now, it turns to construct the truth table for 3 to 8 decoder. E input can be considered as a control input.

Mean to say, If E equals to 0 then the decoder would be considered as disabled regardless of what inputs are,  If E equals to 1 then the decoder would work as per inputs.

Truth table without E input

InputsOutputs
I2I1I0O7O6O5O4O3O2O1O0
00000000001
00100000010
01000000100
01100001000
10000010000
10100100000
11001000000
11110000000

We can represent the following output as:

O= I0‘.I1.I2
O= I0.I1.I2

O= I0‘.I1.I2
O3 = I0.I1.I2
O4 = I0.I1.I2
O5 = I0.I1.I2
O6 = I0.I1.I2
O7 = I0.I1.I2


Truth table with E input

Inputs
Outputs
EI2I1I0O7O6O5O4O3O2O1O0
0---00000000
100000000001
100100000010
101000000100
101100001000
110000010000
110100100000
111001000000
111110000000

Step 3. With the help of the above expressions derived from the table, the circuit of a 3 to 8 decoder can be implemented.

Decoder Without E

3 2Bto 2B8 2Bdecoder 2Bwithout 2Bflow3code

Explanation:

In the above diagram, there were three input lines with their respective complements using Inverters. Each and every AND gate were holding three inputs from I1Iand Iand producing 8 outputs.

Decoder with E

 

3 2Bto 2B8 2Bwith 2Benable 2Bflow2code

Explanation:

In above diagram, there were three input lines along with their complements using Inverters. Each and every AND gate were holding four inputs from E, I1Iand Iand producing 8 outputs.

]]>
https://programmerbay.com/construct-3-to-8-decoder-with-truth-table-and-logic-gates/feed/ 0
Construct 4 to 1 Multiplexer Using Logic Gates https://programmerbay.com/construct-4-to-1-multiplexer-using-logic-gates/ https://programmerbay.com/construct-4-to-1-multiplexer-using-logic-gates/#respond Thu, 01 Oct 2020 04:50:00 +0000 http://programmerbay.com/?p=3110

A multiplexer is a Combinational circuit (it is a type of circuit whose output rely on the given inputs using various logic gates ) that takes multiple inputs and delivers only a single output. It consists input data lines, selection lines and a single output.

Multiplexer

To construct a 4 to 1 multiplexer, we need to know how many selection lines we required to create a MUX?

We require  n selection lines, where 2n represents total input lines and  n represents selection lines. (In this case, 22 that gives 4 input lines and 2 selection lines).

A multiplexer is often abbreviated as MUX or many to one circuit or parallel to serial circuit.

It is a data selector that provides the mechanism to select single binary information from many input lines and passes it to output line

Advantages of Multiplexer:

  • It is less costly and reduces transmission circuit complexity
  •  It can be used to implement many combinational circuits
  • It reduces number of wires

Applications of Multiplexer:

  • It is used in communication system i.e Satellite systems, telephone networks
  • It is used to read data from memory locations in computer memory

Types of Multiplexer
There are various types of multiplexers and few are given below:

  • 2:1 MUX
  • 4:1 MUX
  • 8:1 MUX
  • 16:1 MUX
  • 32:1 MUX

In this article, we’ll be discussion 4:1 MUX.

Here are the steps to design or construct 4 to 1 Multiplexer or 4:1 MUX using Logic Gates :

1) Now, make a diagram of multiplexer with 4 input lines, 2 selection lines and 1 output. In below diagram, A0 , A1 , A2 and A3 are input data lines, S0 and S1 are Selection lines and lastly one output line named Y.

 

MULTIPLEXER 2B4 2Bcross 2B1

2) This is how a truth table for 4 to 1 MUX looks like . According to the truth table, the output of the multiplexer fully depends on selection lines (binary data , 00,01,10 & 11) and one input would be selected from all the input data lines as the output.


Truth table

   Selection Lines    Output
S0S1Output
00A0
01A1
10A2
11A3

Above  table is created as per follow :

When S0 =0 and S1=0 , then A0 would be the output.
Similarly When S0 =0 and S1=1 , then A1 would be the output.

We can represent this by an expression.
Output = S0‘.S1‘A+ S0‘.S1A1+ S0.S1‘A2 + S0.S1 A3

3) In last step, design 4 to 1 multiplexer by using 4 AND gates and a single OR gate.
4 2Bto 2B1

Explanation:

In above diagram, there were two selection lines along with their respective complements using Inverters. Each and every AND gate were holding three inputs from S1, S0 and a particular input A. lastly, outputs of all AND gates became the input for OR gate and providing a single output.

]]>
https://programmerbay.com/construct-4-to-1-multiplexer-using-logic-gates/feed/ 0
Construct 2 to 4 decoder with truth table and logic diagram https://programmerbay.com/construct-2-to-4-decoder-with-truth-table-and-logic-diagram/ https://programmerbay.com/construct-2-to-4-decoder-with-truth-table-and-logic-diagram/#respond Sun, 01 Oct 2017 16:57:00 +0000 http://programmerbay.com/?p=3109

Just as Multiplexer, Decoder is also a Combinational circuit  which transforms given inputs to maximum number of outputs(maximum outputs equal to 2n and n are given inputs ).
A block diagram of decoder consists input lines, one or more enable inputs and maximum number of output lines.
To construct a decoder, we require to know the number of all possible output lines that totally depends on the given input.
So, if  n represents given input lines then possible output lines would be 2n .
Decoder with two inputs would give 4 outputs (n=2,2that is 4).

Step 1. Now we know possible outputs for 2 inputs, so construct 2 to 4 decoder , having 2 input lines, a enable input and 4 output lines. In the below diagram, given input represented as Iand I, all possible outputs named as  O0, O1, O2, & Oand a E were represented by Enable input.

With Enable input

2 2BTO 2B1 2Bdecoder

 

Without Enable input

2 2BTO 2B1 2Bdecoder 1

Step 2. Now, it turns to construct the truth table for 2 to 4 decoder. E input can be considered as the control input. Mean to say, If E equals to 0 then the decoder would be considered as disabled regardless of what inputs are,  If E equals to 1 then the decoder would work as per inputs.

Truth table without E input

 

Inputs Outputs
I1 I0 O3 O2 O1 O0
0 0 0 0 0 1
0 1 0 0 1 0
1 0 0 1 0 0
1 1 1 0 0 0

As per the above table, I0 would give Oand O3 and I1 would give O1 and O3.
We can represent the following output as:

O= I0‘.I1
 O= I0.I1

 O= I0‘.I1
 O3 = I0.I1


Truth table with E input

Inputs Outputs
E I1 I0 O3 O2 O1 O0
0 0 0 0 0
1 0 0 0 0 0 1
1 0 1 0 0 1 0
1 1 0 0 1 0 0
1 1 1 1 0 0 0

Decoder with E

2 2Bto 2Bdecoder 2Bdiagram 2Bwith 2BE

 

Explanation:

In above diagram, there were two input lines along with their complements using Inverters. Each and every AND gate were holding three inputs from E, Iand Iand producing 4 outputs.

Decoder Without E

2 2Bto 2Bdecoder 2Bdiagram

Explanation:

In above diagram, there were two input lines with their respective complements using Inverters. Each and every AND gate were holding two inputs from Iand Iand producing 4 outputs.

]]>
https://programmerbay.com/construct-2-to-4-decoder-with-truth-table-and-logic-diagram/feed/ 0