0
1
00:00:01,840 --> 00:00:05,930
What are the basic building blocks of combinational logic circuits? In this lecture, 
1

2
00:00:06,130 --> 00:00:11,550
I am going to introduce you to logic gates that can be used to build any combinational circuits.
2

3
00:00:11,980 --> 00:00:18,430
Although designing with these gates is not the goal of HLS, understanding their behaviour and functionality
3

4
00:00:18,610 --> 00:00:22,240
helps us to develop an optimum design in HLS.
4

5
00:00:26,140 --> 00:00:31,210
Logic gates are fundamental building blocks of combinational circuits. There are three basic logic
5

6
00:00:31,210 --> 00:00:41,050
gates: AND, OR and NOT. The output of an AND gate is one if and only if both inputs are 1. The output 
6

7
00:00:41,050 --> 00:00:43,180
of an OR gate is one 
7

8
00:00:43,330 --> 00:00:48,640
if at least one of the inputs is 1. The NOT gate reverses the state of its input. 
8

9
00:00:49,970 --> 00:00:56,180
The combination of an AND and NOT gates is called NAND gate. Also, the combination of an OR and 
9

10
00:00:56,180 --> 00:00:57,890
NOT gates is called NOR gate. 
10

11
00:00:58,100 --> 00:01:05,120
These gates are important because any complex combinational circuits can be built by using only one
11

12
00:01:05,120 --> 00:01:05,440
of them.
12

13
00:01:05,570 --> 00:01:08,960
Therefore, they are called functionally complete gates. 
13

14
00:01:08,960 --> 00:01:15,590
Also, in some semiconductor technologies manufacturing these gates are easier than basic logic gates. 
14

15
00:01:17,830 --> 00:01:25,210
Exclusive-OR, or XOR for short, is another gate that can be built by using basic logic gates or by using 
15

16
00:01:25,210 --> 00:01:31,510
functionally complete gates. The output of an exclusive-OR gate is one if and only if exactly one of
16

17
00:01:31,510 --> 00:01:32,560
its inputs is one. 
17

18
00:01:33,700 --> 00:01:39,550
In other words, if the inputs are not equal. The last special gate is called XNOR,
18

19
00:01:39,880 --> 00:01:44,140
that is the negative of XOR. The output of this gate is one
19

20
00:01:44,140 --> 00:01:46,750
if and only if the inputs have the same value. 
20

21
00:01:47,020 --> 00:01:49,630
In other words, the inputs are equal.
21

22
00:01:53,370 --> 00:01:59,430
Let’s see an example designed by these gates. Single bit binary adder is one of the simplest combinational 
22

23
00:01:59,430 --> 00:02:00,120
circuits.
23

24
00:02:00,840 --> 00:02:08,170
This adder receives two binary inputs and generates two binary outputs, representing sum and carry bits. 
24

25
00:02:08,170 --> 00:02:12,060
This circuit can be built using XOR and AND gates. 
25

26
00:02:12,780 --> 00:02:15,180
This circuit is also called half-adder. 
26

27
00:02:15,690 --> 00:02:19,050
The truth table represents the functionality of this design.
27

28
00:02:20,350 --> 00:02:27,550
However, to extend this addition to more than one bit, we should involve the carry bit, as an input. 
28

29
00:02:27,550 --> 00:02:33,970
The resulted adder is called the full adder, which is a single-bit binary adder that receives a third input 
29

30
00:02:34,180 --> 00:02:37,420
as the carry generated by the predecessor bit. 
30

31
00:02:37,630 --> 00:02:42,370
This figure shows the full adder digital circuit and its corresponding truth table.
31

32
00:02:45,250 --> 00:02:49,130
Real logic gates cannot react immediately to the input changes. 
32

33
00:02:49,330 --> 00:02:54,870
So, what is a delay of a gate or a logic circuit to possible changes on the input values?
33

34
00:02:55,270 --> 00:02:58,810
The next lecture covers the concept of delay in logic circuits. 
34

35
00:03:01,030 --> 00:03:07,000
These are the takeaway messages. All combinational logic functions can be implemented by three basic 
35

36
00:03:07,000 --> 00:03:14,290
gates AND,  OR, NOT, NAND or NOR gates are enough to implement any combinational logic circuit.
36

37
00:03:16,810 --> 00:03:21,490
Now the quiz for this lecture. Show these equivalencies also known as De Morgan’s laws.
