Introduction to Information Science and Technology

Lecture 5: Memory and Sequential Logic

Xin Lou

School of Information Science and Technology · Fall 2026

Where We Are

Course Overview

Diagram
Today:Memory
Sequential logic, memory hierarchy and the memory wall
SI100B · EE1 / 53
Where We Are

Lecture 5 Overview

Three parts: sequential logic, memory taxonomy and hierarchy, and the AI memory wall.

SI100B · EE2 / 53
01 / 03

Sequential Logic

Sequential Logic

Combinational Logic Has No Memory

A running total must be stored between additions.

SI100B · EE3 / 53
Sequential Logic

Two Inverters in a Loop

Each state keeps itself going, so the loop stores one bit.

SI100B · EE4 / 53
Sequential Logic

The Latch

latch: a 1-bit storage circuit with a Write switch: Write = 1 lets D in; Write = 0 holds Q.

SI100B · EE5 / 53
Sequential Logic

The Clock

clock: a signal that ticks at a steady rate.

SI100B · EE6 / 53
Sequential Logic

Where the Clock Comes From

Quartz watch tuning-fork crystal
32,768 Hz
The quartz crystal in a watch
32,768 = 2¹⁵
32,768 vibrations per second. Divide by 2 fifteen times: one tick per second.
Image: Chribbe76 / Wikimedia Commons, public domain
SI100B · EE7 / 53
Sequential Logic

D Flip-Flop

flip-flop: stores one bit and updates only at the clock’s rising edge.

SI100B · EE8 / 53
Sequential Logic

Reading a Clock Waveform

edge-triggered: updates only when the clock rises from 0 to 1, ignoring changes between ticks.

SI100B · EE9 / 53
Sequential Logic

Register

register: a row of flip-flops holding one number.

SI100B · EE10 / 53
Sequential Logic

Accumulator and Counter

accumulator: a register paired with an adder to keep a running total across clock ticks.

SI100B · EE11 / 53
Sequential Logic

Clock Speeds Over Time

6 GHz: one tick every 0.17 ns (1 ns = one billionth of a second); light travels about 5 cm.

SI100B · EE12 / 53
Sequential Logic

Combinational vs Sequential

Combinational: output depends only on inputs now. Sequential: also on what is stored.

SI100B · EE13 / 53
02 / 03

Memory Types and Hierarchy

Memory Types and Hierarchy

Where Do the Weights Live?

weight: a learned number (a parameter). 70B means 70 billion weights; 1 GB is one billion bytes.

SI100B · EE14 / 53
Memory Types and Hierarchy

What Do You Want as a Programmer?

capacity: how much fits; bandwidth: how much moves per second; latency: how long a request takes.

SI100B · EE15 / 53
Memory Types and Hierarchy

Memory Taxonomy: The Full Picture

RAM lets you access any address directly. NAND flash is the storage in an SSD (solid-state drive).

SI100B · EE16 / 53
Memory Types and Hierarchy

Memory Types

SI100B · EE17 / 53
Memory Types and Hierarchy

The Memory Hierarchy

SI100B · EE18 / 53
Memory Types and Hierarchy

Flash: Cell Structure

SI100B · EE19 / 53
Memory Types and Hierarchy

Flash: Program and Erase

SI100B · EE20 / 53
Memory Types and Hierarchy

Flash: Reading a Bit

SI100B · EE21 / 53
Memory Types and Hierarchy

Main Memory: DDR DRAM

SI100B · EE22 / 53
Memory Types and Hierarchy

The TPU Print Circuit Board

The DRAM chips sit in two rows beside the TPU processor.

SI100B · EE23 / 53
Memory Types and Hierarchy

DRAM Cell Structure

DRAM must be refreshed periodically because charge leaks over time.

SI100B · EE24 / 53
Memory Types and Hierarchy

Robert Dennard and DRAM

1966

A compact way to store a bit as charge

US Patent 3,387,286, granted 1968

Modern main memory and HBM use DRAM.
Robert Dennard, IBM

SI100B · EE25 / 53
Memory Types and Hierarchy

Intel 1103

1970

1,024 bits of DRAM on one chip

End of 1971: the best-selling semiconductor device

Memory chips began to replace magnetic cores.
Intel 1103 chip

SI100B · EE26 / 53
Memory Types and Hierarchy

On-Chip Memory: SRAM

SI100B · EE27 / 53
Memory Types and Hierarchy

SRAM Cell Structure and Array

SI100B · EE28 / 53
Memory Types and Hierarchy

SRAM on a Real Chip

Inside an AMD Ryzen 5 3600
32 MB
SRAM cache on one AMD Ryzen 5 3600 (2019)
About 268 million bits
One SRAM cell stores each bit.
Image: Fritzchens Fritz / Wikimedia Commons, CC0
SI100B · EE29 / 53
Memory Types and Hierarchy

SRAM, DRAM and Flash

SI100B · EE30 / 53
Memory Types and Hierarchy

Moving Data Between Levels

SI100B · EE31 / 53
Memory Types and Hierarchy

Magnetic Core Memory

Whirlwind core memory planes
1953
MIT Whirlwind switches to magnetic core memory.
2,048 words × 16 bits
Word: a group of bits stored and read together.
One ferrite ring stores one bit: magnetized one way or the other.
Image: Wikimedia Commons
SI100B · EE32 / 53
Memory Types and Hierarchy

Apollo Guidance Computer Memory

Core rope memory: test sample
36,864 words
Core rope: read-only, wired at the factory
2,048 words
Rewritable core memory
Image: Wikimedia Commons; data: MIT R-700
SI100B · EE33 / 53
03 / 03

The Memory Wall

The Memory Wall

Every Token Reads the Weights

token: a word or piece of a word the model writes.

SI100B · EE34 / 53
The Memory Wall

Bandwidth Limits Tokens per Second

bandwidth: bytes per second memory can deliver. TB: one trillion bytes.

SI100B · EE35 / 53
The Memory Wall

The Bandwidth Gap

SI100B · EE36 / 53
The Memory Wall

The Capacity Gap

SI100B · EE37 / 53
The Memory Wall

High-Bandwidth Memory

SI100B · EE38 / 53
The Memory Wall

GDDR vs LPDDR vs HBM

MemoryGb/s per pinWidth (bits)Peak (GB/s)
DDR58.46467.2
LPDDR5X9.66476.8
GDDR6243296
GDDR73232128
HBM2E3.61,024460.8
HBM36.41,024819.2
HBM3E8.81,0241,126.4
HBM46.42,0481,638.4

Peak = pin rate × interface width ÷ 8. Compare one interface at a time.

SI100B · EE39 / 53
The Memory Wall

TPU v2 with HBM

SI100B · EE40 / 53
The Memory Wall

HBM in AMD GPU

SI100B · EE41 / 53
The Memory Wall

HBM on AI Chips

SK hynix HBM4
NVIDIA B200 (HBM3e)
180 GB · 8 TB/s
NVIDIA Rubin (HBM4)
288 GB · 22 TB/s
Per GPU, up to; thousands of wires per stack.
Sources: SK hynix; NVIDIA
SI100B · EE42 / 53
The Memory Wall

SRAM or HBM?

SI100B · EE43 / 53
The Memory Wall

How Many Chips for One Model?

wafer: a round slice of silicon used to make chips.

SI100B · EE44 / 53
The Memory Wall

Cerebras: SRAM on a Whole Wafer

Cerebras WSE-3 wafer
44 GB
On-chip SRAM per wafer
Feb. 2026: OpenAI runs GPT-5.3-Codex-Spark on it at over 1,000 tokens/s.
Image: Cerebras
SI100B · EE45 / 53
The Memory Wall

Groq: Weights in On-Chip SRAM

Groq LPU board
230 MB
On-chip SRAM per chip
LPU: Groq’s chip for running AI models.
Dec. 24, 2025: NVIDIA licensed Groq’s technology for running AI models; Groq remains independent.
Image: Groq
SI100B · EE46 / 53
The Memory Wall

3D Integration and Advanced Packaging

SI100B · EE47 / 53
The Memory Wall

Emerging Non-Volatile Memories

SI100B · EE48 / 53
The Memory Wall

Near-Memory and In-Memory Computing

SI100B · EE49 / 53
The Memory Wall

Neuromorphic Computing

SI100B · EE50 / 53
Wrap-Up

Key Ideas

Two inverters in a loop hold one bit; flip-flops capture bits only on the clock’s rising edge, and a register is a row of flip-flops.

Pairing a register with an adder builds accumulators and counters that update step by step with the clock.

SRAM holds a bit in an inverter loop; DRAM refreshes a capacitor; flash reads a change in transistor threshold.

Models can outgrow one chip’s memory or wait for weights to move. HBM uses wide connections; in-memory computing can move less data.

SI100B · EE51 / 53
Wrap-Up

Homework and Project

Homework 2 · Sequential Logic
Build sequential circuits step by step in Logisim: Latch → D Flip-Flop → 8-bit Register → Accumulator
Lecture 5: sequential logic

miniCPU Project
Use registers, a register file, a program counter, and a clock to run a program
How a CPU runs a program: Lecture 6

SI100B · EE52 / 53
Wrap-Up

Next: Systems

Diagram
Next:Systems
How do registers, ALUs and memory run a program?
A register called the program counter tracks which step of the program runs next.