Introduction to Information Science and Technology

SI100B · Electrical Engineering

Lecture 2: Logic Gates and Combinational Logic

Xin Lou

School of Information Science and Technology · Fall 2026
Where We Are

Course Overview

Diagram
Today:Transistors and Logic Gates
SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
1 / 44
Transistors

nMOS Transistor

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
2 / 44
Transistors

nMOS Operation

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
3 / 44
Transistors

pMOS Transistor

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
4 / 44
Transistors

Transistors as Switches

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
5 / 44
Switches and Logic

Binary Quantities

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
6 / 44
Switches and Logic

Switches in Series

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
7 / 44
Switches and Logic

Switches in Parallel

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
8 / 44
Switches and Logic

Series and Parallel Switches

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
9 / 44
Switches and Logic

George Boole, 1854

1854

Boolean algebra: rules for true and false

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
10 / 44
Switches and Logic

Claude Shannon, 1937

1937

Boolean algebra for switching circuits

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
11 / 44
Switches and Logic

Relays and Vacuum Tubes

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
12 / 44
Switches and Logic

The First Computer Bug

1947

“First actual case of bug being found.”

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
13 / 44
Switches and Logic

Shannon’s Machines

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
14 / 44
Logic Gates

The NOT Gate

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
15 / 44
Logic Gates

CMOS NOT Gate

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
16 / 44
Logic Gates

AND and NAND

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
17 / 44
Logic Gates

CMOS NAND Gate

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
18 / 44
Logic Gates

OR and NOR

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
19 / 44
Logic Gates

CMOS NOR Gate

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
20 / 44
Logic Gates

Quiz: Transistors

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
21 / 44
Logic Gates

Quiz: Gates

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
22 / 44
Logic Gates

XOR and XNOR

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
23 / 44
Logic Gates

Apollo Guidance Computer

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
24 / 44
Logic in Games

Redstone Components

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
25 / 44
Logic in Games

Redstone NOT

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
26 / 44
Logic in Games

Redstone AND and OR

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
27 / 44
Logic in Games

Computers in Minecraft

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
28 / 44
Logic in Games

Neural Networks in Minecraft

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
29 / 44
Logic in Games

Turing Complete

A puzzle game: build a computer from NAND gates.
SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
30 / 44
Logic in Games

Gates in Turing Complete

Build AND from two NAND gates.
SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
31 / 44
Logic in Games

Player-Built CPUs

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
32 / 44
Combinational Logic

A More Complicated Function

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
33 / 44
Combinational Logic

From Truth Table to Gates

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
34 / 44
Combinational Logic

Combinational Logic

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
35 / 44
Combinational Logic

Combinations of N Bits

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
36 / 44
Adders

Binary Addition

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
37 / 44
Adders

Half Adder

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
38 / 44
Adders

Half Adder from Gates

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
39 / 44
Adders

Full Adder

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
40 / 44
Adders

Full Adder from Gates

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
41 / 44
Wrap-Up

Key Ideas

A transistor is a switch controlled by electricity.

CMOS gates pair nMOS and pMOS switches that turn on at opposite gate voltages.

Switches in series implement AND; switches in parallel implement OR.

Any Boolean function can be built from AND, OR and NOT gates.

A few logic gates can be wired together to make an adder.

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
42 / 44
Wrap-Up

Homework 0

Basic Logisim usage

Draw and simulate circuits in Logisim. Review the material from class.

SI100B · EE | Lecture 2: Logic Gates and Combinational Logic
43 / 44
Wrap-Up

Next: Number Systems

Diagram
Next:Number Systems