1.1 The characteristics of contemporary processors, input, output and storage devices Flashcards
Why was assembly language developed?
To allow humans to input instructions easily, without having to remember long strings of 1’s and 0’s.
What are Mnemonics?
Simplified instructions, used in assembly language, to easily write instructions. E.g. ADD, SUB, AVG.
Benefits of Mnemonics
Simplified
Easier for a developer to remember compared to binary instructions
What is an Opcode?
Part of an instruction which tells a computer what to do with data.
Components in a CPU:
The control unit
Buses
Arithmetic/logic unit (ALU)
Registers
What is the main function of the control unit?
Coordinates the activities of a CPU, directing the flow of data in, within and out of the CPU.
What is a bus?
A set of parallel wires that connect two or more components of a computer. Usually consists of 8, 16, 32 or 64 lines.
What are the main buses that connect the CPU to the memory and the direction of data flow along these buses?
The address bus (From CPU to memory only)
The data bus (Both directions)
The control bus (Both directions)
What is the function of the address bus?
Carries the address of a specific memory location that the CPU wants to access.
What is the function of the data bus?
Carries data from the memory to the CPU to be processed
Carries processed data from the CPU to the memory
What is the function of the control bus?
Transmits control signals between the CPU to control timings, status information and bus requests.
What is the function of the arithmetic/logic unit (ALU)?
Carries out arithmetic and logic operations on data.
Can ADD, SUBTRACT, MULTIPLY and DIVIDE numbers
Can carry out Boolean logic operations
What are registers?
A memory location in a CPU that holds a small amount of data.
Can be an instruction, a storage address, or other items of data.
What is the function of the program counter?
Holds the address of the next instruction to be executed.
What is the function of the current instruction register?
Holds the instruction that is currently being executed.
What is the function of the memory address register?
Holds the memory address for which data is to be fetched from or written to.
What is the function of the memory data register?
Holds data that is read from or written to memory.
Acts like a buffer between the CPU and the memory so that they can act independently of each other.
Describe the fetch, decode, execute cycle.
PROGRAM COUNTER tells CPU address of next instruction, sends address to RAM through ADDRESS BUS.
Instruction is fetched from RAM through DATA BUS to CIR.
Instruction is decoded by control unit and data to be operated on is fetched using BUSES and sent to the ACCUMULATOR.
ACCUMULATOR carries out operation on the data.
Processed data is sent back to the RAM through DATA BUS.
What three factors affect the performance of a processor?
> Clock speed
Number of cores
Amount of cache
What is clock speed?
The speed at which a CPU can execute a cycle of processes.
Cycles per second, Hertz.
What is a limitation of increasing clock speed?
The faster the clock speed, the more heat is generated by the CPU.
What is cache?
A small amount of fast memory which is connected directly to the CPU which stores recently accessed data.
How does cache speed up the processor?
It is quicker to retrieve information from cache than it is to retrieve from the RAM.
What are cores?
Cores are small processors which make up the entire processor.