0
1
00:00:00,960 --> 00:00:07,620
How can we implement a conditional statement using basic logic gates? To answer this question, I will 
1

2
00:00:07,620 --> 00:00:14,130
introduce you to the multiplexer concept as the building block of the decision making process in hardware.
2

3
00:00:15,160 --> 00:00:19,040
A multiplexer is one of the basic concepts in logic circuits. 
3

4
00:00:19,900 --> 00:00:26,780
It is a digital switch in which the output o is either a or b, depending on the value of s.
4

5
00:00:28,290 --> 00:00:36,880
If s is 0 then o is the same as a. And if s is 1 then o is the same as b. The multiplexer 
5

6
00:00:36,880 --> 00:00:43,500
has two types of inputs: Data inputs which determine the different options of the output,
6

7
00:00:44,460 --> 00:00:50,070
Select or control inputs which choose one of the inputs to be connected to the output.
7

8
00:00:52,000 --> 00:00:59,560
A generalised multiplexer can have n data inputs, m select inputs and one output. A value on the 
8

9
00:00:59,560 --> 00:01:05,900
select input connects one of the data inputs to the output. In order to have a practical circuit, 
9

10
00:01:06,130 --> 00:01:11,470
the number of data inputs should be less or equal than 2 to the mth power.
10

11
00:01:12,860 --> 00:01:19,280
A multiplexer can be implemented by basic logic gates. This design is a typical implementation 
11

12
00:01:19,280 --> 00:01:23,840
of a 2x1 multiplexer using AND, OR and NOT gates.
12

13
00:01:25,420 --> 00:01:33,810
When the s is 0 then a propagates to the output
And when s is 1 b propagates to the output.
13

14
00:01:35,890 --> 00:01:41,830
After getting familiar with the concept of the multiplexer. The question is: What is the generalised 
14

15
00:01:41,830 --> 00:01:45,170
form of a multiplexer in a real design? In the next lecture, 
15

16
00:01:45,430 --> 00:01:46,720
I will answer this question. 
16

17
00:01:48,370 --> 00:01:53,680
These are the takeaway messages. Multiplexer is the primary building block in implementing a decision-making 
17

18
00:01:53,680 --> 00:01:55,750
process in hardware.
18

19
00:01:56,290 --> 00:02:02,110
A multiplexer has two groups of inputs, including data and select, and an output.
19

20
00:02:03,680 --> 00:02:09,560
Now the quiz question. How can a group of basic logic gates implement this 4x1 multiplexer?
