Processors and Memory Flashcards
Define
PC
Program counter, contains the address of the next instruction
Define
CIR
Current Instructor Register: stores the address of the next instruction currently being executed and decoded
Define
MAR
Memory Address Register, holds relevant memory address (to read from or write to)
Define
MDR
Memory Data Register, stores data being transferred to and from memory. Acts as a buffer
Define
ALU
Arithmetic and Logic Unit, does all mathematical calculations and makes all logical decisions
Define
Accumulator
A storage register in teh ALU that holds the data temporarily whilst the data is being processed and before it is transferred to memory
Define
RISC
Reduced Instruction Set Computer. Only simple instructions taking one clock cycle are executed - more widely used than CISC. Used in smartphones and tablets
Advantages of RISC
- Allows for Pipelining
- Execution will be quicker or as fast as CISC
- Low cost
Disadvantages of RISC
- Compiler has to do more work
- More RAM required
- More instructions required
Define
CISC
Complex Instruction Set Computer: Large instruction set is used to minimise the lines of code required - mainly used for microcontrollers and embedded systems
Advantages of CISC
- Compiler has little work to do
- Not much RAM needed
- Large number of instructions
Disadvantages of CISC
- Building specifialed instructions can be inefficient when only ~20% get used per program
- Instructions take several clock cycles
- Expensive to build
Define
GPU
Graphics Processin Unit - dedicated graphics processor on a graphics card, used to render images stored in the RAM of the graphics card
Define
Multi-Core CPU
A CPU with more than one core on the same chip - makes use of paralell processing for optimum efficiency
What affects processor performance?
- The number of cores performance
- The processor’s clock speed
- Amount/type of cache memory
Define
RAM
Random Access Memory
Define
Volatile Memory
Memory that requires power to retain stored information
Define
ROM
Read Only Memory - holds information which must be permanently in memory e.g. BIOS
Define
ADD
(Little Man Computer Instruction Set)
Add the contents of the memory address from the accumulator
Define
STA
(Little Man Computer Instruction Set)
Store the accumulator value in the memory address given
Define
SUB
(Little Man Computer Instruction Set)
Subtract the contents of the memory address from the accumulator
Define
LDA
(Little Man Computer Instruction Set)
Load the content of the given memory address into the accumulator
Define
BRA
(Little Man Computer Instruction Set)
Branch Always - use the address given as the address of the next instruction
Define
BRZ
(Little Man Computer Instruction Set)
Branch if zero - Branch to the given address if the accumulator value is zero
Define
BRP
(Little Man Computer Instruction Set)
Branch if positive - Branch to the given address if the accumulator value is positive (or zero)
Define
INP
(Little Man Computer Instruction Set)
Input into the accumulator
Define
OUT
(Little Man Computer Instruction Set)
Output the contents of the accumulator
Define
HLT
(Little Man Computer Instruction Set)
Stops the execution of the program
Define
DAT
(Little Man Computer Instruction Set)
Indicates a location to contain data
Name the 4 addressing modes
- Immediate Addressing
- Direct Addressing
- Indirect Addressing
- Indexed Addressing
Define
Immediate Addressing
(Little Man Computer Instruction Set)
The operand is the actual value to be operated on
Define
Direct Addressing
(Little Man Computer Instruction Set)
The operand holds the memory address of the value to be operated on
Define
Indirect Addressing
(Little Man Computer Instruction Set)
The operand is the location holding the address of the relevant data
Define
Indexed Addressing
(Little Man Instruction Set)
Modifies the address in the address field by the addition of a number held in a special-purpose registers, called an index register, before the address is used.
What is the formula for clock frequency
Clock frequency = 1 / clock period
What is clock speed measured in
- Hertz / Hz
- Megahertz / MHz
- Gigahertz / GHz
What happens during the fetch stage of the FDE cycle?
- The PC keeps the address of the next instruction to be executed. The contents of the PC are copied into the MAR. This address is placed onto the address bus
- The CU instructs a memory read operation to read the address on the bus and transfers it to the processor, the instruction inside the address is placed onto the data bus and placed in the MDR. The PC is incremented by one.
- The contents of the MDR are copied into the CIR. This ensures that the current instruction is kept safe so that the MDR can be used during the execute stage, in order to store additional data that is needed.
What happens during the decode stage?
The CU decodes the instruction that is kept in the CIR. This involves splitting the instruction into operand and opcode to determine what type of instruction needs to be carried out, checking if additional data are required from memory, and figuring out where these are kept in main memory.
What happens during the execute cycle?
The instruction is executed. The exact sequence of operations depends on the type of instruction that is being executed. For example, for an arithmetic instruction any required data are fetched from the main memory,