Unit 5 - Computer Organisation and Architecture Flashcards
What is a computer system?
Any system that can take a set of inputs and process them to produce useful outputs
Why is an I/O controller required in a computer?
This is necessary because the processor cannot communicate directly with peripheral devices
How does the I/O controller work?
The I/O controller converts the signals sent by the peripherals into a format which the processor can understand and vice versa
What piece of software works in unison with the I/O controller?
A device driver
What does the device driver do?
A device driver is a piece of software that allows peripheral devices to communicate with the processor. The component of the processor is communicates with is the I/O controller.
Busses are made up of _______
Microscopic parallel wires
What are the 4 standard bus sizes
8, 16, 32 or 64 lines
T/F: the control bus is omnidirectional
True
What does omnidirectional mean?
Signals can be sent in both directions
What is the control bus used for?
Controls the flow of data between the processor and other parts of the comput
T/F: you can only send signals in one direction on the data bus
False: the data bus is omnidirectional
What impact will increasing the width of the data bus have on the computer?
It will increase the performance of the computer because the more wires there are in the data bus the more bits can be sent at once
Which two busses are omnidirectional?
The control and data bus
Which bus is unidirectional?
The address bus
What is the address bus used for?
It sends memory addresses from the processor to CPU components
What does the width of the address bus determine?
The maximum number of memory addresses of that system because a memory address is sent in one operation
What are the 5 main control signals?
- Memory read
- Memory write
- Bus request
- Bus grant
- Clock
What do the control signals memory read and memory write do?
Memory read causes data from the addressed location to be placed on the data bus
Memory write causes data from the data bus to be written into the addressed location
What do the control signals bus request and bus grant do?
Indicates that a device is requesting use of the data bus
Indicates that the CPU has granted a device access to the data bus
What does the control signals clock do?
Synchronises operation
What is the word length?
The number of bits that can be addressed, transferred or manipulated as one unit
What is stored in main memory?
Data and instructions
What is a general purpose computer?
A computer that can perform many different tasks at different times
What is the fixed program concept?
This described the programming of early computer when they only had one program which meant that they could only do one thing
What is the stored program concept?
The idea that instructions are stored together in main memory so they can be accessed easily by the processor
What is the difference between Von Neumann and Harvard architecture?
In the von Neumann architecture instructions and data are stored in the same memory where as they have different memories in the Harvard architecture
T/F: the von Neumann architecture is viewed as better than the Harvard architecture
False: the Harvard architecture is viewed as superior because it allows for different word lengths and memory capacity for the two different types of information
Why is the von Neumann architecture more commonly used?
The Harvard architecture is more costly and is very complex to program as well as requiring more physical space
What happens during the Fetch-Decode-Execute cycle?
- Address of next instruction transferred from PC to MAR
- PC incremented by 1
- Instruction stored in location addressed by MAR is transferred to MBR
- Instruction transferred from MBR to CIR
- Instruction in the CIR gets decoded by the CU and split into the opcode and operand
- Additional data, if required by the instruction, is fetched from the memory
- Additional data passed to registers
- Instruction executed by the ALU
- Registers are used to store intermediate data or results
- Result is stored in the accumulator or general purpose register or memory
What are the 6 main dedicated registers and their purpose?
Program Counter: holds the memory address of the next instruction to be executed, located in the CU
Current Instruction Register: holds the instruction that is currently being decoded or executed
Memory Address Register: Holds the address of the memory location that the processor has to fetch or store data from or in
Memory Buffer Register (aka Memory Data Register): Temporarily holds data moving between the processor and main memory
Status Register: holds information about the current state of operations, sets flags and detects error conditions
Interrupt register: Stores details of incoming interrupts
What factors effect the performance of a computer system?
Clock speed, cache memory, number of cores, word length and address and data bus width
What are the sub-components of the processor?
ALU, CU, Clock, General Purpose Registers and Dedicated Registers
What does the processor do?
Controls, calculates and executes instructions
What does the ALU do?
Performs, arithmetic, logic and sift operations and acts as the problem-solving component within the processor
What does the CU do?
Coordinates and organises the processor through the utilisation of the fetch-decode-execute system and synchs each step with a pulse from the clock
What do general purpose registers do?
Temporarily stores results from the ALU before they need to be used
What is the accumulator?
A replacement for the general purpose registers, it is a register that it specifically for temporarily storing results from the ALU
What do dedicated registers do?
Hold specific data
What does the clock do?
Synchronises when instructions are executed, it controls the speed at which the processor works. Instructions are generally executed on the rising edge of the clock and different instructions will take a different number of cycles to complete.
What is an instruction set?
The different commands which the processor can perform
Why do different processors have different instruction sets even if they perform the same instructions?
They have different ways of expressing instructions
What are the 6 different types of instruction?
- Data transfer .e.g. LOAD or STORE
- Arithmetic operations .e.g. ADD or SUBTRACT
- Comparison operations
- Logical operations .e.g. AND, OR or NOT
- Branch, conditional and unconditional
- Shift operations, shifting bits left and right
What language does the processor understand?
Machine code
What are the two parts of an instructions?
The opcode and the operand
What is the opcode?
The section of the instruction which dictates the command which the processor must execute
What is the operand?
The section of the instruction which provides the information the processor is to use to execute the command given in the opcode
What is immediate addressing?
This is when the information to be used in the command is given in the operand
What is direct addressing?
This is when the memory address of the data to be used in the command in given in the operand
What is the addressing mode?
The section of the opcode (often two bits) which indicates what type of addressing the command is using and whether it is immediate or direct
What method of expressing information does assembly language use?
Mnemonics
What section of the instruction does the mnemonic represent in assembly language?
The opcode
What character is used to indicate a comment in assembly language?
;
What type of storage is volatile?
Primary storage
What type of storage is non-volatile?
Secondary storage and Main Memory
Define processor
A device that carries out computation on data by following instructions in order to produce an output