1.1 - The characteristics of contemporary processors, input, output and storage devices Flashcards
What does the Arithmetic Logic Unit (ALU) do?
It is the problem solving part and performs arithmetic, logical + shift operations on data. The results are stored in registers.
What are the 4 arithmetic operations?
AND, OR, NOT, XOR. (Boolean Logic Operations)
What are shift operations?
Bits are moved left or right in a register.
What is the Central Processing Unit (CPU)?
It is the brain of the computer, it does all the calculations & processes instructions.
What are registers?
Several locations of superfast memory to temporarily store results. Small memory cells that operate at a very high speed. They are used to temporarily store data and all arithmetic, logical and shift operations occur in these
registers.
What are the 5 special purpose registers?
- Program Counter (PC).
- Current Instruction Register (CIR).
- Memory Address Register (MAR).
- Memory Data Register (MDR).
- Accumulator (ACC)
What does the PC do?
It holds the memory address of the next instruction to be executed.
What does the CIR do?
It holds the current instruction and splits it into Opcode + Operand.
What does the MAR do?
It holds the address in memory where the processor is required to fetch/store date to/from.
What does the MDR do?
It temporarily holds data moving between the processor and main memory.
What does the ACC do?
It holds intermediate results of an instruction.
What 3 things need to be held in order for a instruction to be executed?
- Current instructions must be temporarily held by the processor before being executed.
- The address of the data + the actual data must be held.
- The address of the next instruction being executed must also be held.
What happens if a computer has more cores?
It is faster.
What are the 5 things the Contol Unit (CU) does?
- It controls & coordinates all the activities of the CPU.
- Managing the flow of data between the CPU and other devices.
- Accepting the next instruction.
- Decoding instructions.
- Storing the resulting data back in memory.
What are Buses?
A series of connectors that transfer signals between internal components. Transferring of data.
What is the System Bus?
It is 3 seperate buses carrying control signals, addresses + data.
How are control signals transported?
Control signals are sent along the control bus between the CU and other components.
What is memory read?
Data from the addressed location in RAM is placed on the data bus.
What is memory write?
Data on the data bus is written to the addressed locations in RAM.
What is bus request?
It Indicates a device is requesting to use the data bus
What does the clock do?
It synchronises operations
What are the 2 features of the data bus?
- This is a bi-directional bus (meaning bits can be carried in both directions). - This is used for transporting data and instructions between components.
What are 2 features of the address bus?
- Transmits the memory addresses specifying where data is to be sent to or retrieved from.
- The width of the address bus is proportional to the number of
addressable memory locations.
e.g 8 bit address bus -> maximum number of memory addresses = 2(∧8) = 256
What are 2 features of the control bus?
- bi-directional bus used to transmit control signals between internal and external components.
- The control bus coordinates the use of the address and data buses and
provides status information between system components.
What is bus grant?
It indicates the CPU has granted access to the data bus.
How are instructions represented in assembly code?
- In mnemonics, e.g. ADD = addition. It is a simplified way of representing machine code.
How is the CIR involved in assembly code instructions?
- The instruction is divided into operand and opcode in the CIR.
-The operand contains the data or the address of the data upon which the operation is to be performed. - The opcode specifies the type of instruction to
be executed
What is the Fetch-Execute cycle?
- Processors operate in defines stages that are used to carry out program instructions.
- The process is repeated for each instruction in a program.
What are the 4 stages of the fetch stage?
- The address of the next instruction is copied from the PC to the MAR.
- The instructions held at that addressare copied to the MDR.
- Simulaneously the contents of the PC are incremented.
- The contents at the MDR are copied to the CIR.
What happens during the decode stage?
- The instructions held at the CIR are decoded.
- It is split into oerand and opcode to determine the type of instruction it is. Additional data, if required, is fetched from memory.
- And passed to the ACC:
a. The opcode specifies the operation that is to be
performed.
b. The operamd holds either the address of the data to be used (then copied to the MAR) or actual data to be operated on and then passed on to MDR (Memory data register)
What happens during the execute stage?
- Instruction is executed and the result is held in the ACC or stored in memory.
What is the summed up explanation of the Fetch-Execute cycle?
Stage 1: Fetch(Instructions) -> MAR -> MDR -> PC(+1) -> CIR
Stage 2: Decode -> CIR(Decoded) -> Split into opcode/operand -> ACC
Stage 3: Execute -> AC Memory (Stored)
REPEAT
What determines the format of machine code instructions?
The architecture of a computer and the type of processor. (including word size + width of the address bus)