Components of a Computer Flashcards
Computer (definition)
Electronic device that takes input, processes information using program and delivers output
3 basic steps of the FDE cycle (definitions)
Fetch - bring next instruction to be decoded from RAM to CPU
Decode - inspect instruction to work out components and functions needed
Execute - carry out and complete instructions
What happens in the Fetch stage of the FDE cycle? (5)
PC address copied to MAR
MAR requests data from RAM using address bus
MDR receives data from MAR address
PC increments
MDR copied to CIR
What happens in the Decode stage of the FDE cycle? (3)
Instruction split into opcode and operand to determine instruction type and hardware needed
Copy of data loaded to CPU is given to cache for easy re-access
Addresses written to MAR in preparation for more reading/writing in Execute stage
What can happen in the Execute stage of the FDE cycle? (3)
The opcode is carried out on the operand, which could mean:
A new address is given to the PC
Data is returned through the MDR to RAM
More data fetched for accumulator
Describe the CPU (purpose and parts)
The part of the computer dedicated to processing data and organising execution of instructions. Contains ALU, CU, cache and registers.
What does the ALU do? (3)
Makes logical decisions
Performs arithmetic calculations
Acts as gateway between primary memory and secondary storage
Examples of ALU functions (2)
ADD/SUBTRACT
AND/OR/NOT
What does the CU do? (2)
Directs data flow between processor and other components
Decodes instructions into sequential steps and manages execution + storage of results
What is cache?
High-speed RAM inside CPU used to store small amounts of data likely to be reused
Differences between L1 cache and L2 cache? (3)
L1 has faster transfer rates and more frequently used data, but is smaller and more expensive
L2 has slower transfer rates (still faster than RAM) and less frequently used data, but has larger capacity
What are registers?
Small, high-speed, on-board memory inside CPU, with designated purposes
What does the PC do?
Holds address of next instruction to be executed, either by incrementing or jumping to an address provided by the CIR
What does the CIR do?
Holds current instruction to be executed, divided into operand and opcode
What is the operand?
Data to be manipulated/operated on
What is the opcode?
An instruction to perform on the operand
What does the MAR do?
holds address of current instruction to be fetched/written to
What does the MDR/MBR do?
temporarily holds fetched data/data to be written
What does the ACC do?
holds data being processed by ALU and results of processing
What is a bus? (include capacity)
Set of parallel wires connecting components of a computer; usually 8-64 lines
Describe the system bus (purpose and parts)
Made up of address + data + control buses. A shared transmission medium between CPU, memory and I/O controllers
Describe the address bus (parts and purpose)
Transmits addresses of operands (“words”) from other components to RAM
What is a “word” (when discussing data - include estimated size)
Fixed size group of bits (usually 16-64 depending on the processor) treated as one unit of information and stored at one address
Describe the data bus (parts and purpose)
Bidirectional bus (8-64 lines) for transmitting data and instructions between components that request to use it.
How are processed results written to memory?
The MAR contains the address to write to and the MDR contains the data to write. The address is sent separately through the address bus and the data through the data bus.
Describe the control bus (parts and purpose)
Bidirectional bus which transmits command, timing and specific status information between components to ensure data/address buses are never used conflictingly
Control lines for buses (2)
Bus request = device requests use of data bus
Bus grant = CPU grants access to data bus
Control lines for memory (2)
Memory read = data from an address provided is to be sent through data bus to MDR
Memory write = data sent from MDR is to be written to address provided