Topic 1 - CPU Architecture Flashcards
Hardware
hardware is the physical stuff that makes up the computer system ( e.g motherboard, monitor)
Software
software is the programs or applications that a computer system runs
What is an embedded system
-embedded systems are computers built into other devices that performs specific function
- they often control and monitor machinery in dishwashers, microwaves, TVs, etc.
Advantages of using embedded system
- easier to design
- cheaper to produce
- more efficient at doing their task
What does the CPU do?
- it processes all of the data and instructions that make the system work
- it controls the rest of the computer system
Control Unit
- it follows the FDE cycle
- it controls the execution of instructions in the right order
- it decodes instructions
register
very fast memory location within the CPU that hold tiny bits of data needed by CPU
ALU
- does arithmetic operations ( + , - , / , * )
- performs logical operations (AND, OR , NOT)
- contains accumulator register
Cache
- very fast memory inside the CPU that stores regularly used data so the CPU can access it quickly
- can access it much quicker rather than accessing it from RAM
-low capacity + expensive
PC
- Program Counter
- points to the address of the next instruction
MAR
- Memory Address Register
- holds the address of the instruction to be fetched or stored
MDR
- Memory Data Register
- stores actual data or instruction that is fetched or stored from/ to memory
Accumulator
- stores intermediate results of calculations in ALU
FDE cycle ( FETCH )
- The address in the PC is copied to the MAR
- The address is sent to the RAM via the address bus
- The instruction stored in that address is copied to the MDR via the data bus
FDE cycle ( DECODE )
- the contents of the MDR are copied into the CIR
- the contents of the PC are incremented so it points to the next address
- the contents of the CIR are divided into the opcode and operand
- CU interprets and decodes the opcode and prepares for next step
FDE cycle ( EXECUTE )
- the instruction is performed
- this could be writing data to memory, doing a calculation or halting a program
Which three factors affect CPU speed
- Clock speed
- Number of cores
- Cache Size
Clock speed
- number of instructions a single core can carry out per second
- the higher the clock speed the more instructions that can be carried out per second,
- which means data is processed faster
overclocking
- what are potential problems
manually increasing clock speed of computer’s CPU
- it can make CPU overheat or crash
- cooling system needed
Cores
- each core processes data independently of the rest
- the more cores a CPU has the more instructions it can carry out at once
- it can process a batch of data faster
when might increasing number of cores not affect anything?
- some software is not written to make us of multiple cores
- so it will not run quicker on a multi-core computer
Cache size
- the CPU can access more regularly used data faster with a larger cache size
- it acts as a buffer between CPU and RAM
- because the CPU can access data faster from the cache than the RAM