RAM vs ROM: Static RAM vs Dynamic RAM Explained

This page covers the difference between RAM and ROM. It also covers the difference between static RAM and Dynamic RAM. Memories are of two types: primary and secondary.

RAM and ROM are types of primary memory.

Semi-random and serial access are types of secondary memory. Examples of semi-random memories include all disc memories such as CDs, DVDs, etc.

Examples of serial access memories include magnetic tape, magnetic bubble ferrite core, CCD, etc.

RAM vs. ROM

FeatureRAM (Random Access Memory)ROM (Read-Only Memory)
AccessRead/Write memoryRead-only memory
VolatilityVolatile memory (used for temporary data storage)Non-volatile memory (used for permanent data storage)
PurposeStores data and instructions currently being used by the CPUStores boot instructions and firmware

Static RAM vs. Dynamic RAM

FeatureStatic RAM (SRAM)Dynamic RAM (DRAM)
Data StorageData is stored like a flip-flop (FF)Data is stored in a MOS capacitor
Transistor TypeBJT, MOSFET is usedMOSFET is used
SpeedFaster operationSlower operation
Power DissipationHigher power dissipationLower power dissipation
DensityLower densityHigher density
UsageUsed as cache memoryUsed as main memory
RefreshingNo refreshing neededRefreshing is needed