Computer Architecture Flashcards
(31 cards)
What is the role of the CPU
- The CPU processes instructions and data that are input into the computer so that the result can be output.
- Fetch decode and execute
Define Microprocessor/ CPU
A microprocessor is a type of integrated circuit that is contained on a single chip
Function of the Address Bus (3)
- Transports an address
- Of the next item to be fetched
- Data travels one way (unidirectional)
Function of the Data Bus (3)
-Transports data
- That is currently being processed // that will be / has been processed
- Data can travel in both directions (bidirectional)
Function of the Control Bus (3)
- Transports signals
- Controls the actions of the CPU
- Can be either Unidirectional or Bidirectional
What is a bus?
A bus is a set of parallel wires through which data/signals are transmitted from one component to another
Function of the Arithmetic logic unit (ALU)
Performs arithmetic operations and logical decisions
Function of the Control Unit (CU)
- Coordinates how data moves around the CPU by sending a signal to control the movement of the data
- Decodes the instructions fetched from memory
Function of Registers
Extremely small, extremely fast memory located in the CPU and hold small amounts of data needed as part of the fetch-execute cycle
What are the 5 main registers of the CPU?
- The Program Counter (PC)
- The Memory Address Register (MAR)
- The Memory Data Register (MDR)
- The Accumulator (ACC)
- Current Instruction Register (CIR)
Function of the Program Counter (PC)
- Holds the memory address of the next instructions to be executed
- Increments by 1 as the fetch-decode-execute cycle runs
Function of the Memory Address Register (MAR)
- Holds the memory address of where data or instructions are to be fetched from memory
Function of the Memory Data Register (MDR)
- Stores the data or instruction which has been fetched from memory
Function of the Accumulator (ACC)
- Stores the results of any calculations that have taken place in the Arithmetic Logic Unit (ALU)
Function of the Current Instruction Register (CIR)
- Stores the instruction the CPU is currently decoding or executing
Describe the role of the control unit, the control bus, the data bus and the address bus when fetching an instruction from memory (4)
- The address of memory (holding instruction) is placed on the address bus (1)
- The control unit sends a signal (1) on the control bus (to start a read operation) (1)
- The instruction is/the contents of the memory are placed on the data bus (1)
What is the FDE cycle?
- The Fetch-Decode-Execute Cycle is the cycle that the central processing unit (CPU) runs through billions of times per second to make a computer work
Describe the process of the fetch stage
- During the fetch stage of the cycle, the program counter holds the address of the next instruction to be fetched from memory
- The address of the next instruction or data to be fetched is copied into the memory address register (MAR)
- The address of the instruction or data is then sent along the address bus and awaits a signal from the control bus
- The signal sent along the control bus is sent from the control unit (CU) to the main memory
- The data or instructions received from main memory is fetched to the memory data register (MDR) via the data bus
- A copy of the instruction or data is stored in the current instruction register (CIR)
- The program counter (PC) increments by 1 so it is pointing to the next instruction to be executed
Describe the process of the decode stage
During the decode stage of the cycle, the CPU needs to work out what is required from the instruction.
Opcode
What the instruction is
Oprand
- What to do the instruction to
- This could be either data or an address where the data is stored
Describe the process of the execute stage and give examples.
- During the execute stage of the cycle, the CPU will carry out the instruction that was fetched
- Performing a calculation
- Storing a result or data back in main memory (RAM)
- Going to main memory to fetch data from a different location
What three characteristics affect the CPU speed
- Clock Speed
- Cache Size
- Number of Cores
Clock Speed
- The clock speed is measured in Hertz (Hz) and is the number of fetch-decode-execute cycles that can take place in 1 second
- The faster the clock speed, the more instructions can be fetched and executed per second