Robotics and Energy Logo

Computer Memory Operation

By Robotics and EnergyJanuary 20, 2021

Introduction

Every computer system has three core components: CPU, Memory, and I/O. Computers process information through input, processing, and output cycles — from simple traffic signals to complex robotic systems. Understanding memory is fundamental to understanding how computers work.

The Binary System

Data in memory is encoded using binary (0s and 1s). A transistor has only two effective states: ON (“1”) and OFF (“0”). These bits combine to represent any number, character, or instruction. 8 bits = 1 byte, which can represent 256 different values (2⁸).

DecimalBinaryHex
000000
100011
101010A
151111F
25511111111FF

Types of Memory

RAM (Random Access Memory)

Temporary storage for active processes. “RAM is a memory space for the processor to store information for a short time during real-time processes.” Data is erased when the system resets.

ROM (Read Only Memory)

Permanent storage for the CPU's program instructions and critical firmware like BIOS. Data persists even when power is off.

Hardware Architecture

The fundamental storage unit is the flip-flop — a circuit that stores a single bit (0 or 1). Eight flip-flops form an 8-bit register. Logic gates (OR, AND, NOT) form the foundation of all memory circuits.

1 flip-flop = 1 bit

8 flip-flops = 1 byte (1 register)

8 GB ≈ 68 billion flip-flops

Memory Structure

Memory organizes as a matrix of flip-flops. In 64-bit systems, rows contain 64 flip-flops each, creating registers that store individual numbers. Each register has a unique address that the CPU uses to read or write data.

This matrix structure allows the CPU to access any memory location directly (randomly) — hence the name Random Access Memory. The speed of this access is what makes modern computing possible.