Processor
Original Scanned PDF – View Notes
Hardwired Versus Microprogrammed Control Unit
| S.N. | Hardwired | Microprogrammed |
|---|---|---|
| 1. | Hardwired control unit is sequential circuit that generates control signals. | Microprogrammed control unit is a unit with micro instructions that generate control signals. |
| 2. | Difficult to modify, decode and implement. | Easy to modify, decode and implement. |
| 3. | Executes operations much faster. | Executes operations slower. |
| 4. | Costly. | Less costly. |
| 5. | No control memory use. | Uses control memory. |
| 6. | Used in RISC (Reduced instruction set computer). | Used in CISC (Complex instruction set computer). |
Explain Arithmetic Logic Unit
- It is part of CPU processor.
- Perform the calculation like arithmetic and logical operations.
- Resides inside the processor.
- ALU is a digital circuit which executes instructions.
- It takes instruction from register or main memory.
- Perform arithmetic operation like addition, subtraction, multiplication, division and module and logical operation like AND, OR, NOT etc.
Explain Different Types of Register
- Registers are used to store data, instruction and provide control to CPU.
- Register stores information during the time of execution.
1. General Purpose Register (GPRs)
These register store 8 bit data, we can also pair these register to store 16 bit data.
2. FPRs (Floating Point Register)
These register store floating point data for mathematical calculations.
3. Program Counter (PC)
It stores location of next instruction to be executed.
4. Stack Point Register
It stores location of first data in stack.
5. Status Register
It indicates status of ALU like overflow carry etc.
6. Control Register
It store control signals for CPU.
Explain Bus Architecture
- Bus is a shared transmission medium.
- Group of conducting wires that carries data, address and control the whole system.
- Made up of 3 wires.
1. Data Bus
- Bidirectional.
- May be 32 bit line or 64 bit lines.
- Carries data from MPs to memory or I/O devices as well as vice versa.
2. Address Bus
- Unidirectional.
- Available in 16 bit lines.
- Locates address of data.
- Carries address from MPU to memory or I/O devices.
3. Control Bus
- Transmits control and timing signals.
- Example: clock, interrupt, reset, boot, enable, disable, acknowledge.
Instruction Execution
- It is a machine language instruction.
- It runs data as a machine instruction.
- Program to be run consists of instruction stored in memory.
- CPU executes the program instructions to finish the task.
- CPU is primarily responsible for the execution of instruction like: fetch decode, execute memory access and write back.
The Following Six Steps Used to Execute a Single Instruction
- Fetch instruction.
- Decode instruction and fetch operands.
- Perform ALU operation.
- Access memory.
- Write back result to register file.
- Update the PC.
RISC Vs CISC
| S.N. | RISC | CISC |
|---|---|---|
| 1. | RISC stands for Reduced Instruction set Computer. | CISC stand for Complex Instruction set Computer. |
| 2. | Executes instructions per clock cycle. | Can take more than one cycle to execute. |
| 3. | Need more memory to hold values. | Need less memory to hold values. |
| 4. | Emphasize on software than hardware. For example one have to write efficient compiler with fewer instruction. | Emphasizes on hardware. For example, it uses more transistor to implement more instruction. |
| 5. | Small number of instruction. | Large number of instruction. |
Addressing Modes
Different methods/modes for specifying the operand address in the instruction are known as addressing modes.
Various types of addressing modes are as follow:
1. Implicit Mode
- Operands are specified implicitly.
- Example:
CMAwhich means complement accumulator.
2. Immediate Addressing Mode
- Actual data is used in operands.
- Example:
Add 10, which means it will increment the value stored in accumulator by 10.
3. Direct Addressing Mode
- The address field contain effective address of the operand.
- Example:
ADD X, which means it will increment the value stored in the accumulator by the value at memory location ‘X’.
4. Indirect Addressing Mode
Address field of the instruction specifies the address of memory location that contain the effective address.
5. Register Direct Addressing Mode
- The address field contain effective address of the operand.
- Example:
ADD R, which mean it will increment the value stored in the accumulator by the value stored at register location R.
6. Register Indirect Addressing Mode
Address field of the instruction specifies the address of register location that contain the effective address.
Discussion
Share a helpful question, idea, or explanation with other students.