1.1.1 Structure And Function Of The Processor Flashcards
1
Q
What is the CPU?
A
- Central Processing Unit
- CPU is often described as the brains of the computer
- CPUs contain a clock that sends signals to keep the timing for all the processes
- Carries out all mathematical and logical operations
- Measured in Hertz
2
Q
1 Hertz?
What is processor speed
A
1 pulse per second
Processor speed is measured by the number of clock cycles a CPU can perform in a second
Equation: Frequency = 1/time
3
Q
1 kilohertz?
A
1000 pulses per second
4
Q
1 Megahertz?
A
1,000,000 pulses per second
5
Q
1 Gigahertz?
A
1,000,000,000 pulses per second
6
Q
What is the ALU?
A
- Arithmetic Logic Unit
- Carries out the calculations (floating point multiplication)/logical operations (comparison tests)
7
Q
What is the CU?
A
- Sends out control signals to co-ordinate how the processor works
- Sent via a control bus to connected devices.
- It controls how data moves around the CPU and how it moves between CPU and memory
- Decodes instructions and controls execution of instructions
8
Q
What is the PC?
A
- Program Counter
- Holds the address of the next instruction to be executed
- PC keeps track of the memory location of the line of machine code being executed
- It gets incremented by 1 with each FDE cycle
9
Q
What is the Accumulator?
A
- Acc stores the results of calculations made by the ALU
- Temporary storage for data being processed
10
Q
What is the MDR?
A
- Memory Data Register
- Temporarily stores the data that has been fetched from or stored in memory
11
Q
What is the MAR?
A
- Memory Address Register
- The instruction to which the PC is pointing is loaded into MAR
- Stores the address of the data or instructions that are to be fetched from or sent to
12
Q
What is the CIR?
A
- Current Instruction Register
- Stores the instruction currently being decoded and executed into opcode and operand
- Small memory location inside the CPU to assist with the fetch-execute cycle
13
Q
What is the machine code?
A
- Machine code is the binary representation of an instruction, split into OPCODE and the instruction’s data
- Machine code is effective but not user friendly to programmers
- We solve this using Assembly Code
14
Q
What is Assembly Code?
A
- 1 Above machine code, allows the programmer to write code using mnemonics, which represent machine code instructions
- Examples MOV - moves a value to a register. ADD - adds a value and stores in ACC
15
Q
What is the Little Man Computer?
A
- Simplified architecture to help students to understand the concept of machine code and instruction sets
- It takes the f_orm of assembly code mnemonics_ and has a limited set of instructions compared to assembly code
- Only has 2 registers : ACC and PC. Data and instructions are stored in memory locations - mailboxes
16
Q
A Von Neumann computer is a computer that…
A
- Uses a single processor
- Uses 1 memory for both instructions and data.
- One system bus/ single set of buses
- Executes programs 1 at a time using Fetch-Decode-Execute
- Has special registers , a control unit and ALU
- Program and data in same format