Architecture of the CPU Flashcards
What is a general purpose computer
A computer that is designed to carry out different tasks. A PC is an example of a general purpose computer.
What can we use a general purpose computer for
- Access the internet
- Browse the world wide web
- Use word processing 4. software
- gaming
- communication
- designing, building web pages
- storing and retrieving data
- play videos and music
What is data
Information, usually numbers and words and letters that are collected for usage and are examined for a task
What is an address
A location of data usually in a memory stick or a disk
What is the CPU
Central Processing Unit
It is the most important hardware component of a computer. Its job is to process the instructions from the main memory. It runs one simple instruction at a time.
Where does the CPU access instructions and data from
RAM (Main memory)
What are the two major components of a CPU
Control Unit
ALU (Arithmetic Logic Unit)
What was Von Neunam’s idea
To store program instructions and data in the same memory. Because of this, it is proven that program instructions and data used by programs are stored in the same memory
What is a register
A fast memory location in the CPU
What are the four registers in a CPU
Accumulator
Program Counter
MAR
MDR
What is the Accumulator’s function
Stores the arithmetic and logical results
What is the Program Counter’s function
To hold the address of the next instruction to be executed
What is the MAR (Memory Address Register) function
To hold the memory address of the current instruction and then the data it uses, so these are fetched from the memory
What is the MDR (Memory Data Register) function
To hold the actual instruction and then the data that has been fetched from the memory
What is the Control Unit function
It coordinates and controls all of the activities taking place within the CPU.
It decodes then executes instructions
It also directs timing and control of other CPU parts like a conductor of the orchestra
What is the ALU (Arithmetic Logic Unit) function
It is where arithmetic operations are calculated
It also carries out logical operations
What are the steps in the FETCH cycle
- The address of the instruction to be executed is copied from the Program Counter to the Memory Address Register.
- The Control Unit then decodes the instruction and decides if data has to be fetched
- If yes, the MAR holds the address of the data to be used in the instruction. The data is then fetched and copied to the Memory Data Register
- The MAR knows where to look for data in the RAM. The MDR keeps hold of that data until its ready to be used in the CPU
What are the 3 factors affecting a CPU’s performance
Clock speed
Processor Cores
Cache size
What is clock speed
Clock speed is the cycles per second measured in hertz (HZ). It is a measure of how quickly the CPU is adapted to its function
What are core processors
The number of cores is the number of duplicate processing units (cores) placed in one CPU. Depending on the number of cores, the amount of instructions is performed at the same time.
What is cache size
The cache size is the memory on CPU, faster than RAM but slower than registers
What happens if we have a faster clock speed
The faster the rate of instructions are processed
How many cycles per second in 1KHz, 1MHz and 1GHz
1Hz = 1 cycle per second
1KHz = 1000 cycles per second
1 MHz = 1000000 cycles per second
1GHz = 1000000000 cycles per second
What is a dual core processor
When there are 2 processors in the same integrated circuit linked. It has the potential to perform 2 instructions at the same time . It allows twice as many instructions to be executed