click below
click below
Normal Size Small Size show me how
computer science
1.1.1 to 1.1.2 structure and function of the processor + types of processor
Question | Answer |
---|---|
what is the function of the processor? | executes instruction to allow the program to run |
common features of a processor? | ALU, CU and registers |
what are registers? | temporary memory location inside the CPU, they all have a faster speed access than RAM. |
special purpose registers. | processor based registers that are used for a specific purpose |
PC | program counter: holds the address of the next instruction to be executed by the processor |
CIR | current instruction register: holds the current instructor that the processor is executing. |
MAR | memory address register: temporarily holds the address of the memory location that the processor needs to access or read from main memory. |
MDR | memory data register: temporarily holds the data that are read from or written to main memory. |
accumulator | stores the result of mathematical or logical operations from the ALU |
ALU | the ALU completes all of the arithmetical and logical operations such as addition subtraction on floating point numbers . |
CU | control unit: sends signals which directs the operations of the CPU. |
what is the control unit responsible for? | decodes every instruction that the processor will need to execute to determine what needs to be done on the instruction. uses control signals to determine the operation the ALU will carry out at each instance |
buses | a set of parallel wires that connect two or more components inside the CPU. |
what type of busses are the system bus made out of? | data bus, control bus, address bus |
data bus | used for transporting data and instructions between components |
address bus | transmits memory addresses specifying where data is to be sent to or retrieved from |
control bus | transmits control signals between internal and external components. |
components of the control bus | memory write, memory read, interrupt request, bus request, bus grant, clock |
FDE cycle | fetch decode execute cycle is the sequence of operations that are completed in order to execute an instruction. |
fetch phase | address of the PC is copied into the MAR instruction held at that address is copied to MDR by data bus contents of PC incremented to 1 at the same time value held in the MDR is copied into the CIR |
decode | contents of CIR are split into the operand and the opcode |
execute phase | decoded instruction is executed |
how is an instruction prepared for the FDE cycle? | program needs to be translated into machine code and the instructions need to be loaded from secondary storage eg. SSD into the main memory (RAM) |
what 3 factors can effect the performance of the CPU? | clock speed, number of cores, cache, pipelining (to an extent) |
how does clock speed effect the performance of the CPU? | greater clock speed = faster instructions are carried out. Overclocking can occur however, this is when more instructions per second are executed that required causing the processor to overheat. |
how does the number of cores effect the performance of the CPU? | more cores a computer has = more instructions it can execute at the same time. Computer can perform more efficiently than computers with the same type of processors but with fewer cores. |
what is a disadvantage of having more cores in a processor? | quad core processors instead of a dual core processors doesn't mean that the amount of instructions that can be processed in the same time frame will double BUT there will still be a significant difference. |