ic_overview_session1_number_systems_and_logic_gates
ic_overview_session1_number_systems_and_logic_gates
1
COURSE INTRODUCTION
Khóa Học Thiết Kế Vi Mạch Cơ Bản - Trung Tâm Đào Tạo Thiết Kế Vi Mạch ICTC
2
COURSE INTRODUCTION
SUMMARY
HOMEWORK
QUESTION
SELF-LEARNING
3
Session 1: Number
Systems and Logic 1. Number System
4
Number systems
Fundamental elements
5
Number systems
Decimal Systems
❑ Digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
❑ Base: 10
❑ Example: how to analyze a decimal number:
6
Number systems
Binary Systems
❑ Value range:
Binary Decimal
0000 0
0001 1
… …
0111 7
… …
1111 15
… …
11…1 (n-bit) 2n-1
7
Number systems
Octal Systems
❑ Using binary system is very long to express a data. Octal digit Binary Decimal
Therefore, we need a number system that can be 0 000 0
shorten the expressing and conversing process.
1 001 1
❑ Digit: 0, 1, 2, 3, 4, 5, 6, 7
❑ Base: 8 2 010 2
3 011 3
505 O = 5.82 + 0.81 + 5.80 = 325 D
4 100 4
123.45 O = 1.82 + 2.81 + 3.80 + 4.8-1 + 5.8-2
5 101 5
6 110 6
7 111 7
8
Number systems
Octal Systems
9
Number systems
Hexadecimal Systems
13
Number systems
Binary addition and substraction
0101111 11100110
+ -
1101101 00111111
------------------- -------------------
14
Number systems
1’s and 2’s Complement
In fact, subtraction can be transformed into addition by using the 2’s complement
form of the second operand.
❑ Practice: Let’s do this practice again using the above method and compare the
result
11100110
-
00111111
-------------------
16
LOGIC GATE
TRANSISTOR
❑ Most of semiconductor devices nowadays are made from transistor MOS (metal-
oxide-semiconductor).
❑ There are 2 types of MOS transistor: P type (Positive) and N type (Negative)
❑ Transistor acts as a switch to turn ON or turn OFF a circuit.
❑ NOT gate (inverter), is a fundamental digital logic gate that performs the
operation of logical negation. The output of a NOT gate is the opposite
(complement) of its input. If the input is high (1), the output is low (0), and vice
versa. Transistor N-type typical usage Transistor P-type typical usage
S is connected to GND (Logic 0) D is connected to VDD (Logic 1)
G = 1 => switch is ON => Transistor is conducting G = 1 => switch is OFF => Transistor is NOT conducting
G = 0 => switch is OFF => Transistor is NOT conducting G = 0 => switch is ON => Transistor is conducting
Truth table
A Q A Q
0 1 Verilog code: Q = !A
❑ A NOR gate is a digital logic gate that performs the logical NOR (NOT-OR)
operation. The output of a NOR gate is high (1) only when both of its inputs are
low (0). If at least one input is high, the output is low (0).
Transistor N-type typical usage Transistor P-type typical usage
S is connected to GND (Logic 0) D is connected to VDD (Logic 1)
G = 1 => switch is ON => Transistor is conducting G = 1 => switch is OFF => Transistor is NOT conducting
G = 0 => switch is OFF => Transistor is NOT conducting G = 0 => switch is ON => Transistor is conducting
❑ A NAND gate is a digital logic gate that performs the logical NAND (NOT-AND)
operation. The output of a NAND gate is low (0) only when both of its inputs are
high (1). If at least one input is low, the output is high (1).
Transistor N-type typical usage Transistor P-type typical usage
S is connected to GND (Logic 0) D is connected to VDD (Logic 1)
G = 1 => switch is ON => Transistor is conducting G = 1 => switch is OFF => Transistor is NOT conducting
G = 0 => switch is OFF => Transistor is NOT conducting G = 0 => switch is ON => Transistor is conducting
21
LOGIC GATE
BOOLEAN’S THEOREMS
22
LOGIC GATE
BOOLEAN’S THEOREMS
23
LOGIC GATE
BOOLEAN’S THEOREMS
24
LOGIC GATE
DE MORGAN’S LAW
❑ De Morgan's laws are a pair of fundamental rules in Boolean algebra. These laws
describe the relationships between logical operations (AND, OR) and their
negations (NOT) when applied to logical expressions. There are two De Morgan's
laws:
A+B=A.B A.B=A+B
All the logic expressions can be represented by NOT, NOR, NAND gates.
25
LOGIC GATE
DE MORGAN’S LAW
A+B=
A.B=
A . (B + C) =
A + (B . C) =
26
SESSION 1
SUMMARY
SUMMARY:
❑ There are 2 mains elements of the number system: base and digit.
❑ Each number system has different ways of base and digit expression.
❑ There are 4 main number system: binary, decimal, octal, hexadecimal.
❑ Each number system can convert to another systems.
❑ Need to remember the rule to perform binary addition/substraction
❑ Transistor acts as a switch to turn ON or turn OFF a circuit.
❑ NOT, NOR, NAND are basic gates and can be used to express any other elements.
Transistor N-type typical usage Transistor P-type typical usage
S is connected to GND (Logic 0) D is connected to VDD (Logic 1)
G = 1 => switch is ON => Transistor is conducting G = 1 => switch is OFF => Transistor is NOT conducting
G = 0 => switch is OFF => Transistor is NOT conducting G = 0 => switch is ON => Transistor is conducting
27
SESSION 1
HOMEWORK
❑ Homework 1:
Prove the below expressions are equivalent !!!
(1) x’yz’ + x’yz + xy’z’ + xy’z + xyz’ + xyz = (x + y + z).(x + y + z’)
(2) A’ + A.B’ + A.B.C’ = A’ + B’ + C’
28