Simplicity Favors Regularity James Tacey Overview RISC architecture
![Simplicity Favors Regularity James Tacey Simplicity Favors Regularity James Tacey](https://slidetodoc.com/presentation_image_h/d238fe5783cf79eb4f5052819cbbc61c/image-1.jpg)
![Overview � RISC architecture � Only 1 instruction type � Multicycle � Simplified datapath Overview � RISC architecture � Only 1 instruction type � Multicycle � Simplified datapath](https://slidetodoc.com/presentation_image_h/d238fe5783cf79eb4f5052819cbbc61c/image-2.jpg)
![Instruction Architecture � Opcode � XXXX Reg Dest X Address XXXXXX � Every instruction Instruction Architecture � Opcode � XXXX Reg Dest X Address XXXXXX � Every instruction](https://slidetodoc.com/presentation_image_h/d238fe5783cf79eb4f5052819cbbc61c/image-3.jpg)
![Instructions Opcode Instruction Effect 0000 ADD REG, ADDRESS REG + data in ADDRESS -> Instructions Opcode Instruction Effect 0000 ADD REG, ADDRESS REG + data in ADDRESS ->](https://slidetodoc.com/presentation_image_h/d238fe5783cf79eb4f5052819cbbc61c/image-4.jpg)
![Process Flow Fetch Write Execution Decode Memory Access Process Flow Fetch Write Execution Decode Memory Access](https://slidetodoc.com/presentation_image_h/d238fe5783cf79eb4f5052819cbbc61c/image-5.jpg)
![Datapath Datapath](https://slidetodoc.com/presentation_image_h/d238fe5783cf79eb4f5052819cbbc61c/image-6.jpg)
![Pros and Cons � Pros: � Simple and effective � Only one type of Pros and Cons � Pros: � Simple and effective � Only one type of](https://slidetodoc.com/presentation_image_h/d238fe5783cf79eb4f5052819cbbc61c/image-7.jpg)
![Status � Working � Fully simulated and verified as expected � Downloads successfully to Status � Working � Fully simulated and verified as expected � Downloads successfully to](https://slidetodoc.com/presentation_image_h/d238fe5783cf79eb4f5052819cbbc61c/image-8.jpg)
![Questions? Questions?](https://slidetodoc.com/presentation_image_h/d238fe5783cf79eb4f5052819cbbc61c/image-9.jpg)
- Slides: 9
![Simplicity Favors Regularity James Tacey Simplicity Favors Regularity James Tacey](https://slidetodoc.com/presentation_image_h/d238fe5783cf79eb4f5052819cbbc61c/image-1.jpg)
Simplicity Favors Regularity James Tacey
![Overview RISC architecture Only 1 instruction type Multicycle Simplified datapath Overview � RISC architecture � Only 1 instruction type � Multicycle � Simplified datapath](https://slidetodoc.com/presentation_image_h/d238fe5783cf79eb4f5052819cbbc61c/image-2.jpg)
Overview � RISC architecture � Only 1 instruction type � Multicycle � Simplified datapath � 2 user-controlled registers
![Instruction Architecture Opcode XXXX Reg Dest X Address XXXXXX Every instruction Instruction Architecture � Opcode � XXXX Reg Dest X Address XXXXXX � Every instruction](https://slidetodoc.com/presentation_image_h/d238fe5783cf79eb4f5052819cbbc61c/image-3.jpg)
Instruction Architecture � Opcode � XXXX Reg Dest X Address XXXXXX � Every instruction accesses memory � Regularity of the instructions allows simplicity in datapath and controller � Not every instruction uses every field
![Instructions Opcode Instruction Effect 0000 ADD REG ADDRESS REG data in ADDRESS Instructions Opcode Instruction Effect 0000 ADD REG, ADDRESS REG + data in ADDRESS ->](https://slidetodoc.com/presentation_image_h/d238fe5783cf79eb4f5052819cbbc61c/image-4.jpg)
Instructions Opcode Instruction Effect 0000 ADD REG, ADDRESS REG + data in ADDRESS -> REG 0001 SUB REG, ADDRESS REG - data in ADDRESS -> REG 0010 AND REG, ADDRESS REG & data in ADDRESS -> REG 0011 XOR REG, ADDRESS REG XOR data in ADDRESS -> REG 0100 NOT REG -> REG 0101 SHL REG -> REG 0110 SHR REG -> REG 0111 OR REG, ADDRESS REG|| data in ADDRESS -> REG 1000 LDR REG, ADDRESS Load data in ADDRESS into REG 1001 STR REG, ADDRESS Store data in REG into ADDRESS 1010 HLT Halts processor 1011 JRR ADDRESS Jumps to address stored in internal register 1100 JMP ADDRESS Unconditional Jump 1101 JR ADDRESS Jump and store current address in internal register 1110 JP REG, ADDRESS Jump if REG is positive 1111 JZ REG, ADDRESS Jump if REG is zero
![Process Flow Fetch Write Execution Decode Memory Access Process Flow Fetch Write Execution Decode Memory Access](https://slidetodoc.com/presentation_image_h/d238fe5783cf79eb4f5052819cbbc61c/image-5.jpg)
Process Flow Fetch Write Execution Decode Memory Access
![Datapath Datapath](https://slidetodoc.com/presentation_image_h/d238fe5783cf79eb4f5052819cbbc61c/image-6.jpg)
Datapath
![Pros and Cons Pros Simple and effective Only one type of Pros and Cons � Pros: � Simple and effective � Only one type of](https://slidetodoc.com/presentation_image_h/d238fe5783cf79eb4f5052819cbbc61c/image-7.jpg)
Pros and Cons � Pros: � Simple and effective � Only one type of instruction � Many aspects of traditional datapath are integrated into controller � Cons: � Requires memory access for every instruction � Controller design is more complex
![Status Working Fully simulated and verified as expected Downloads successfully to Status � Working � Fully simulated and verified as expected � Downloads successfully to](https://slidetodoc.com/presentation_image_h/d238fe5783cf79eb4f5052819cbbc61c/image-8.jpg)
Status � Working � Fully simulated and verified as expected � Downloads successfully to board � Problems � Board does not run as expected � In-System Memory Content Editor causes Quartus II to crash � PC does not increment as expected
![Questions Questions?](https://slidetodoc.com/presentation_image_h/d238fe5783cf79eb4f5052819cbbc61c/image-9.jpg)
Questions?