3 Flashcards
Input devices
Laptop: keyboard, buttons, microphone
Smartphone: microphone, buttons, GPS sensor, touch part of the touchscreen
Output devices
Laptop and smartphone: speakers, display
Processing
CPU (Central Processing Unit)
The main components
of a computer
-Input devices
-Output devices
-Main memory
-Secondary storage
-CPU (central processing unit)
The purpose of the CPU
it has to execute and processing all of the instructions and data
Von Neumann architecture
Used the concept of ‘stored program computer’ which allowed the instructions and data to be stored in the same memory
Components of the CPU
Control Unit (CU)
Arithmetic-Logic Unit (ALU)
Register
Control Unit (CU)
The control unit coordinates and controls all of the activities taking place within the CPU
- It decodes instructions and executes them
- It receives signals from the system clock
- It directs the timing and control of other parts of the CPU
Arithmetic Logic Unit (ALU)
The ALU is where the actual arithmetic operations are done (can be more than one)
Registers in the CPU
Program Counter (PC)
Memory Address Register (MAR)
Memory Data Register (MDR)
Current Instruction Register (CIR)
Accumulator (ACC)
Program Counter (PC)
The Program Counter stores the address of the next instruction to be executed.
Memory Address Register (MAR)
The MAR stores the address of the current instruction being executed and the address of the data that
needs to be accessed.
Memory Data Register (MDR)
The MDR holds first the instruction, and then the data (if any) to be used in the instruction, copied from RAM.
Current Instruction Register (CIR)
The CIR stores the instruction currently being executed or decoded
Accumulator (ACC)
The accumulator (ACC) is where arithmetic and logic results are temporarily stored (result from ALU calculation)
Fetch – Decode – Execute
system is used by the CPU
FETCH – causes the next instruction and any data involved to be fetched from main memory
DECODE – decodes the instruction
EXECUTE – the instruction is executed
REPEAT
Register
a fast memory located in CPU
The CPU operates on a cycle.
What is the name of this cycle?
Fetch-decode-execute cycle.
Explain the different stages of the cycle
Fetch: The CPU fetches the next instruction to be executed from main memory.
Decode: It decodes the instruction
Execute: The processor carries executes the instruction.
THE PROCESS IS REPEATED
Factors affecting CPU performance
Clock speed
Number of cores
Cache size
Clock speed
- Cycles per second
measured in hertz (Hz) - Everything in a computer happens on the pulse of the internal clock
- Therefore, the faster the clock speed, the faster the instructions are processed
Processor of cores (A dual-core computer)
A dual-core processor has the potential to perform two instructions at the same time
This allows twice as many instructions to be executed
Cache
- Cache is a small amount of very fast, expensive memory in the CPU
- It can be accessed faster than regular main memory (RAM)
Difference of Cache and RAM
-RAM is relatively slow memory to access as it is further away from the processor than cache
-Program instructions and data that are fetched are stored in cache in case they are needed again soon