Unit 5 - Computer organisation and hardware Flashcards
(40 cards)
What is the definition of a computer system?
A computer system is a system that takes in a set of inputs, processes them and outputs a set of outputs.
What are the four component types contained within the CPU?
- Processor
- Main memory
- Address, control and data buses
- I/O controllers
What allows an I/O device to interface with the computer?
I/O devices use I/O controllers, named device drivers, as a bridge between them and the computer.
Tasks of an I/O controller:
- Convert signals from peripheral device into a format the computer can process and vice versa
- Receive I/O signals from the CPU and send device-specific signals to the device
- Manage data flow to and from the device
What are the three buses and their purposes?
- Control bus sends control signals
- Data bus sends data
- Address bus sends memory addresses
In what direction does the address bus send memory addresses?
The address bus only sends addresses from the processor to all the CPU components.
In what direction does the control bus send signals?
The control bus sends signals between the processor and all CPU components, in both directions.
In what direction does the data bus send data?
The data bus sends data from the processor to output devices and memory and sends data from input devices to memory.
Give two examples of control signals.
- Memory read
- Memory write
- Bus request
- Bus grant
- Clock
What are the units that memory is divided up into?
Words.
What is a word (CPU)?
A word is a fixed-size unit of data handled as an instruction by the processor.
What is the width of a data bus?
The width of a data bus is the number of wires it contains and the word length that can be transferred in a single operation.
What does the width of the address bus decide?
The width of the address bus decides the maximum possible number of memory addresses of the system.
What is the stored program concept?
The stored program concept is the loading of machine code instructions into memory, where they can then be executed immediately by the processor in a sequential order.
What is the difference between Harvard architecture and Von Neumann architecture?
Harvard architecture grants a separate bus of data and instructions, whilst Von Neumann architecture requires them to both share a single bus.
When is Harvard architecture most commonly used and why?
Harvard is most commonly used in embedded systems that need to perform specialist functions. This is because speed is often important and the cost is less of a concern.
What are the five components within the processor? (two of them are kind of the same)
- Arithmetic logic unit
- Control unit
- Clock
- General purpose registers
- Dedicated registers
How does the control unit synchronise the activity of the components in the processor?
The control unit decodes the instruction and identifies the individual steps such as fetching address and fetching data. Each step is then synchronised using regular pulses from the system clock.
What are the five dedicated registers within the processor?
- Control Unit
- Memory Address Register
- Memory Buffer Register
- Current Instruction Register
- Status Register
What are the four steps of the fetch section of the fetch decode execute cycle?
1) Address of next instruction is copied from PC to MAR.
2) PC is incremented by 1.
3) Instruction in location specified by MAR stored in MBR.
4) Instruction transferred from MBR to CIR.
What are the three steps of the decode section of the fetch decode execute cycle?
5) Instruction in CIR is decoded.
6) Additional data required for instruction (if any) is fetched from memory.
7) This data is then passed to the registers.
What are the three steps of the execute section of the fetch decode execute cycle?
8) Instruction is executed by the ALU.
9) Registers are used to store intermediate data or results.
10) Result is stored in accumulator or general purpose memory.
Factors that affect performance of a CPU:
- Clock speed
- Cache memory
- Number of cores
- Word length
- Bus widths
The range of operations such as ADD, SUBTRACT and NOT available to a processor are decided by the… ?
Instruction set.