Lecture Note - Top Level View of Computer
Lecture Note - Top Level View of Computer
Put the sequence of operations (commands) and data in memory by coding them in some form
Make a circuit that reads the commands and generates the right control signals (s1s0), delivers data
to the ALU and put result (z) back to memory.
Let a command (instruction) has the following format
The ALU has four possible operations, so we can use 2 bits for the operation code
A memory location is accessed with a numerical address
Let the memory has 8 locations with addresses 0 to 7 (we can use 3 bits for memory address)
Let Operand 1, Operand 2 and Result be addresses of memory location (we need 3 bits for each )
Such stored-program concept was introduced by von Neumann.
The design is referred to as the von Neumann architecture
Von Neumann Architecture
Virtually all contemporary computer designs are based on concepts developed by John von Neumann at the
Institute for Advanced Studies, Princeton.
The von Neumann architecture is based on three key concepts:
1. Data and instructions are stored in a single readwrite memory
2. The contents of this memory are addressable by location, without regard to the type of data
contained there
3. Execution occurs in a sequential fashion (unless explicitly modified) from one instruction to the
next
Computer top-level components and the interactions among them
The Control Unit , the ALU and some registers constitute the Central Processing Unit (CPU)
Data and instructions need to get into the system and results out I/O components.
Temporary storage of code and results is needed Main Memory
These components communicate with each other using interconnection structure (system bus).
Some basic registers inside CPU some are used for the purpose of data exchange among this
components
Program :
o e.g. overflow, division by zero
Timer :Generated by internal processor timer
I/O :From I/O controller
Hardware failure
o e.g. memory parity error