cs CPU architecture Flashcards
purpose of ALU
resposible for any arithmetic or logic processing that might be needed when a program is running
purpose of control unit
- To control operation of fetch-execute cycle;
- To send control signals/commands to other components of fetch-execute cycle;
- To control the transfer of data between registers
The internal clock
controls the cycles inside the processor and its frequency is called clock speed
immediate access memory
Immediate Access Store holds all the data / instructions / programs currently in use
- Immediate Access Store is volatile memory
- Immediate Access Store has fast access times
system clock
- synchronise operations
- … by creating timing signals
program counter
Stores the address where the next instruction is to be read from
memory address register
Stores the address of the memory location currently being read from
memory data register
Holds the data/instruction which has been read from the address in the MAR.
current instruction register
Holds the instruction currently being decoded and/or executed
index register (IX)
Stores a value; only used for indexed addressing.
status register
Holds information about the current state of operations. It is used to set flags or to detect error conditions and to disable/enable interrupts.
fetch
The address of the next instruction to be executed, held in the PC, is copied to the MAR.
- The instruction held at that address is placed in the MDR. then copied to CIR
decode, execute
The instruction is held in the CIR.
- The control unit decoder decodes the instruction, the opcode identifies the type of instruction it is and the relevant part of processor executes the instruction.
what is the stored program concept
Instructions and data are stored in the same memory space / in main memory.
control bus
The control bus is bi-directional and carries control signals.
data bus
The data bus is bi-directional as data can be sent both ways along the bus
address bus
This bus carries the address of a memory location in one direction
how number of cores affect performnace
Each core processes one instruction per clock pulse
- More/multiple cores mean that sequences of instructions can be split between them
how clock speed affects performance
- determines the number of cycles the CPU can execute per second
- increasing clock speed increases the number of operations/number of fetch-execute cycles that can be carried out per unit of time
how cache affects performance
cache memory is faster than main memory so the more that can be stored in cache memory the less frequently the main memory needs to be accessed
- … the higher capacity the more frequently used instructions it can store for fast access
what are interrupts
- A digital signal from some device/source seeking the attention of the processor
- a signal from a device/program that it requires attention from the processor.
how interrupts are handled
Detection: At the start / end of each fetch-execute cycle the processor checks for interrupt(s)
- Check if an interrupt flag is set // Check if bit set in interrupt register
- Processor identifies source of interrupt
- Processor checks priority of interrupt
- If interrupt priority is high enough // Lower priority interrupts are disabled
def of file header
specifies the image size, number of colours, and other data needed to display an image
benefits of vector graphic
can be enlarged without loss of quality
generally a smaller file size