What is computer architecture
Computer architecture refers to the overall organization of a computer system. It is analogous to a blue print.
The architecture of a computer specifies
1)The functionality of the major components.
2) The intercommunication among components
Types of computer architecture
1.Von Neumann architecture
2. Harvard architecture
3. Instructions set architecture
4. Microarchitecture
……….. Is the fundamental architecture for every digital computer
Von Neumann architecture
Who proposed von Neumann architecture
John von Neumann
Von Neumann architecture consist of
How does von Neumann architecture execute instructions
Discuss the CPU
The CPU is made up three essential components, what are there??
Discuss ALU ( Arithmetic and Logic Unit)
Examples of arithmetic operations carried out by ALU are
Examples of logic operations in ALU are
When operations become more and complex the ALU…………
Also becomes more complex and expensive and takes more space in the computer and dissipates more heat
Discuss the CU ( control unit)
The CU tells the ALU what operations to perform on data and ALU stores the results in an output register
The CU moves the data to the output devices
Discuss registers
Registers are special transistors that store data and instructions as they are being manipulated by the control unit and ALU.
Registers are essentially extremely fast memory locations within the CPU that are used to create and store the results of the CPU operations.
Every data to be processed by CPU must be in the registers
Essentially, registers are the memory locations to which data are sent and retrieved.
Computer differ from one another in……..
1.The number of registers
2.Register types
3.Length of each register
4. They also differ in the usage of each register
General purpose register are used for multiple purposes and assigned a variety of functions by programmers
So registers are user visible and modifiable. Others are not e.g
USER VISIBLE AND MODIFIABLE
1.General purpose
2.Data(e.g, accumulators)
3Address( e.g base, addressing, index addressing)
CONTROL ( NO VISIBLE TO USERS)
1. Program counter (PC)
2. Instructions Decoding Register (IR)
3. Memory Address Registers (MAR)
4. Memory Buffer registers (MBR)
STATE REGISTERS ( VISIBLE TO USER BUT NOT DIRECTLY MODIFIABLE)
1.Program status word (PSW)
Types of registers
Memory access registers (MAR)
To perform write and read operations, two registers are essential
1. Memory data register (MDR)
2. Memory access registers (MAR)
The MDR are used exclusively by the CPU and are not directly accessible to the programmer
Memory access registers (MAR)
In order to perform a write operation into a specified memory locations, the MDR and MAR are used as follows
Memory access registers (MAR)
Similarly, to perform a memory read operations, the MDR and MAR are used as follows
Instructions fetching registers
In order to fetch an instruction for execution, two registers are used, these are
Condition registers
Memory