Computer Architecture 3
Computer Architecture 3
Computer Architecture
Digital Logic Gates and
Boolean Algebra
By Thilina Wanshathilaka
1
1/27/2024
Programming Language
Assembly Code
Machine Code
Microarchitecture
Execution Units
Function Units
Logic Gate
Transistors
Physics
2
1/27/2024
• Assembly Language/Bytecode
• Assembly language is a low-level programming language that is closely tied to
the architecture's machine code. It uses mnemonics and symbols to represent
the machine instructions, making it more readable for humans compared to raw
machine code.
• Programming Language:
• Programming languages provide higher-level abstractions, allowing developers to
write code using more human-readable syntax. These languages are translated
into machine code or executed by an interpreter, enabling the creation of more
complex software.
• Application:
• At the top of the stack, applications are the end-user software that performs
specific tasks or functions. Examples include word processors, web browsers,
games, and other software that users interact with directly.
Semi Conductor
Semi Conductor
3
1/27/2024
Transistors
Current flow C to E E to C
4
1/27/2024
AND Gate
A B Q
0 0 0
0 1 0
1 0 0
1 1 1
Boolean Expression
Q=A.B
5
1/27/2024
AND Gate
OR Gate
A B Q
0 0 0
0 1 1
1 0 1
1 1 1
Boolean Expression
Q=A+B
OR Gate
6
1/27/2024
NOT Gate
A Q
0 1
1 0
Boolean Expression
Q= A
NOT Gate
XOR Gate
A B Q
0 0 0
0 1 1
1 0 1
1 1 0
Boolean Expression
Q=A B =A.B+A.B=(A+B).(A.B)
7
1/27/2024
XOR Gate
NAND Gate
A B Q
0 0 1
0 1 1
1 0 1
1 1 0
Boolean Expression
Q=A.B
NAND Gate
8
1/27/2024
NOR Gate
A B Q
0 0 1
0 1 0
1 0 0
1 1 0
Boolean Expression
Q=A+B
NOR Gate
XNOR Gate
A B Q
0 0 1
0 1 0
1 0 0
1 1 1
Boolean Expression
Q=A B =(A.B)+(A.B)=(A+B).(A.B)
9
1/27/2024
XNOR Gate
Any Questions ?
THANK YOU
End Of Session 1
10