Computer Orginisation Flashcards
What is the CPU?
The CPU executes programs, which are stored as
numbers representing Machine Language Instructions
What is the Control Unit (CU) and what cycle does it preform?
Control Unit – controls all parts of the computer system. It manages the four basic operations of the Fetch Execute Cycle.
What does the Arithmetic Logic Unit (ALU) do?
The ALU must perform the command, performing Arithmetic (+,*,,/) or Logic (and, or,…) operations. The result of the operation is placed in the ACCUMULATOR (a CPU register). Then the CU might send a result back to the RAM.
Stages of data retrival
- The Memory Address Register contains the address (location) of a byte in the memory.
- This is transmitted over the Address Bus.
- After that the RAM finds the data and sends it back over the Data Bus,
- and the value is stored in the Memory Data Regiter.
CPU and Memory diagram
What types of registers are there?
MIMAP
- Memory Address Register
- Instruction Register
- Memory Data Register
- Accumulator
- Program Counter
What does the Program Counter do?
Program Counter: Stores the address of the next instruction
What does the Memory Address Register do?
Memory Address Register: Stores the address in memory that is to read or written.
What does Memory Data Register Do?
Memory Data Register: Stores the data in memory that has been read or is to be written.
What does the instruction register do?
Instruction Register: Stores the current instruction being processed.
What does the Accumulator do?
Accumulator: A set of general purpose registers used for storing temporary intermediate results of the CPU’s calculations.
What is done in the Fetch Phase?
- The PC (Program Counter) stores the address of the next instruction in memory.
- The contents of the PC are copied to the MAR and the PC is incremented.
- The address is put onto the address bus.
- The data at that address is read into the MDR.
- The data returns on the data bus.
What is done in the Decode Phase?
- The instruction carried by the MDR is copied to the IR (Instruction Register)
- The instruction is translated into a format that the ALU can understand.
What is done in the Execute Phase?
- The ALU carries out the operation, e.g. ADD, MUL, CMP, JMP, STO, etc.
What is done in the Store Phase (optional)?
This is almost exactly the same as the Fetch phase, except that the control bus carries a “write” signal instead of a “read” signal. Therefore, instead of reading the data stored at the MAR address into the MDR, the data stored in the MDR is written to the location at the MAR address.
What is an operating system?
Software that controls the execution of programs and that may provide services such as resource allocation, scheduling, input/output control, and data management.