Hardware And Virtual Machine (2)
Hardware And Virtual Machine (2)
Machine
1 2 3
2 x
ADD x,y
3
4 y
Memory
Question : Difference Between Fixed length instruction and
Variable length instruction ?
1
LOAD A,X
LOAD B,Y 2 x
ADD A,B
STORE Z 3
4 y
Memory
A B Z
Features Of RISC
Risc has fewer instructions.
Risc has many registers
Risc instructions are simpler
Risc has few instruction format
Risc usually uses single cycle instructions
Risc uses fixed length instructions
Risc has better pipelineability
Risc requires less complex circuit
Risc has fewer addressing modes
Risc makes more use of RAM
Risc has hardwired control unit
Explanation
Let's assume that we are doing laundry.
W D F
W D F
W D F
W D F
W D F
W D F
W D F
W D F
1. Fetch Instruction.
2. Decode Instruction.
3. Execute Instruction.
4. Access operand in memory.
5. Write result to register.
Without Pipelining
Processor
Application
Processor
Image 3 Increase
Processor
pixels Brightness
Processor
3 pixel = 3 processors
Each processor will increase
brightness of each pixel
Multiple Instruction Single Data
Processor
Processor
Software :