Harvard Architecture: Simple Explanation
Harvard architecture is a computer organization where the memory for instructions (the program code) and data (the values the program works with) are completely separate. This means the CPU has two different memory units and two separate buses: one for instructions and one for data[1][2][3][5][6][8].
How Data and Instructions Are Stored
How It Works (With a Simple Example)
Imagine you have a simple program that adds two numbers:
- The instructions for "add these numbers" are stored in program memory (ROM).
- The numbers themselves are stored in data memory (RAM).
When the CPU runs the program:
- It fetches the instruction from program memory.
- At the same time, it can fetch or store data from/to data memory.
- This parallel access makes Harvard architecture faster than Von Neumann architecture, where both instructions and data share the same memory and bus[2][3][5][6][8].
Key Points for Scoring Maximum
- Separate Memories: Instructions and data are stored in different memory units.
- Separate Buses: Each memory has its own bus, so the CPU can access both at the same time.
- Faster Execution: Because of parallel access, instruction fetch and data read/write can happen simultaneously, increasing speed.
- Typical Usage: Common in embedded systems, microcontrollers, and digital signal processors (DSPs), where speed and efficiency are important[1][2][3][5][6][8].
- Instruction Memory (ROM): Usually read-only, stores program code.
- Data Memory (RAM): Usually read-write, stores variables and results.
Quick Comparison Table
| Feature | Harvard Architecture |
|---|
| Memory for Instructions | Separate (often ROM) |
| Memory for Data | Separate (often RAM) |
| Buses | Two (instruction & data) |
| Parallel Access | Yes |
| Speed | Faster |
| Used In | Embedded, DSP, MCU |
In Summary
In Harvard architecture, instructions and data are stored in separate memories and accessed via separate buses, allowing the CPU to fetch instructions and read/write data at the same time. This leads to faster and more efficient processing, especially in systems where speed is critical[2][3][5][6][8].