1 / 17

ALUop 1 X+0 2 X-Y 3 0+Y 4 0 5 X+Y

RISCEE 3 Architecture. Clock = load value into register. ALUop 1 X+0 2 X-Y 3 0+Y 4 0 5 X+Y. OR gate. 2. 0 1. ADD1. P0. BZ. AND gate. NOT. PC. Y. Zero. Read address Instruction [15-0] Instruction Memory. Instruction[7-0]. ALU3. address Write Data Read Data.

selima
Télécharger la présentation

ALUop 1 X+0 2 X-Y 3 0+Y 4 0 5 X+Y

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. RISCEE 3 Architecture Clock = load value into register ALUop1 X+02 X-Y3 0+Y4 05 X+Y OR gate 2 0 1 ADD1 P0 BZ AND gate NOT PC Y Zero Readaddress Instruction[15-0] InstructionMemory Instruction[7-0] ALU3 address WriteData ReadData Read Data Accumulator WriteData X RegWrite MemWrite ADD2 3 2 1 0 RegDst Clock

  2. Instruction: clear Operation: A=0; ALUop1 X+02 X-Y3 0+Y4 05 X+Y OR gate 2 0 1 ADD1 =0 P0 =0 BZ AND gate NOT PC Y Zero Readaddress Instruction[15-0] InstructionMemory Instruction[7-0] ALU3 address WriteData ReadData Read Data Accumulator WriteData X RegWrite =1 MemWrite RISCEE 3 Architecture ADD2 3 2 1 0 RegDst =0 =2 RegDst=2 ALU=4 MemWrite=0 RegWrite=1 BZ=0 P0=0

  3. Instruction: addi data8 Operation: A = A + data8; ALUop1 X+02 X-Y3 0+Y4 05 X+Y OR gate 2 0 1 ADD1 =0 P0 =0 BZ AND gate NOT PC Y Zero Readaddress Instruction[15-0] InstructionMemory Instruction[7-0] ALU3 address WriteData ReadData Read Data Accumulator WriteData X RegWrite =1 MemWrite RISCEE 3 Architecture ADD2 3 2 1 0 RegDst =0 =2 RegDst=2 ALU=5 MemWrite=0 RegWrite=1 BZ=0 P0=0

  4. Instruction: add addr8 Operation: A = A + Memory[addr8]; ALUop1 X+02 X-Y3 0+Y4 05 X+Y OR gate 2 0 1 ADD1 =0 P0 =0 BZ AND gate NOT PC Y Zero Readaddress Instruction[15-0] InstructionMemory Instruction[7-0] ALU3 address WriteData ReadData Read Data Accumulator WriteData X RegWrite =1 MemWrite RISCEE 3 Architecture ADD2 3 2 1 0 RegDst =0 =0 RegDst=0 ALU=3 MemWrite=0 RegWrite=1 BZ=0 P0=0

  5. Instruction: store addr8 Operation: Memory[addr8]=A; ALUop1 X+02 X-Y3 0+Y4 05 X+Y OR gate 2 0 1 ADD1 =0 P0 =0 BZ AND gate NOT PC Y Zero Readaddress Instruction[15-0] InstructionMemory Instruction[7-0] ALU3 address WriteData ReadData Read Data Accumulator WriteData X RegWrite =0 MemWrite RISCEE 3 Architecture ADD2 3 2 1 0 RegDst =1 =X RegDst=X ALU=3 MemWrite=1 RegWrite=0 BZ=0 P0=0

  6. Instruction: bne addr8 Operation: if (A != 0) { pc=addr8; } ALUop1 X+02 X-Y3 0+Y4 05 X+Y OR gate 2 01 ADD1 =0 P0 =1 BZ AND gate NOT PC Y Zero Readaddress Instruction[15-0] InstructionMemory Instruction[7-0] ALU3 address WriteData ReadData Read Data Accumulator WriteData X RegWrite =0 MemWrite RISCEE 3 Architecture ADD2 3 2 1 0 RegDst =0 =X RegDst=X ALU=3 MemWrite=1 RegWrite=0 BZ=0 P0=0

  7. Instruction: apc Operation: A=pc+2; ALUop1 X+02 X-Y3 0+Y4 05 X+Y OR gate 2 0 1 ADD1 =0 P0 =0 =X BZ AND gate NOT PC Y Zero Readaddress Instruction[15-0] InstructionMemory Instruction[7-0] ALU3 address WriteData ReadData Read Data Accumulator WriteData X RegWrite =1 MemWrite RISCEE 3 Architecture ADD2 3 2 1 0 RegDst =0 =3 RegDst=X ALU=X MemWrite=1 RegWrite=0 BZ=0 P0=0

  8. RISCEE 4 Architecture Clock = load value into register 01 2 P0 | (~AluZero & BZ) ALUsrcB PCSrc 012 Y IorD MDR2 ALUOut Instruction[7-0] ALU 0 1 2 MemRead X PC IRWrite 1 0 address Read Data Write Data I R Read Data Accumulator WriteData ALUsrcA ALUop1 X+02 X-Y3 0+Y4 05 X+Y RegWrite MemWrite MDR 1 0 RegDst Clock

  9. T1 all instructions # IR=Mem[PC] & pc=pc+2 RISCEE 4 Architecture 01 2 P0=1 BZ=X P0 | (~AluZero & BZ) =1 =0 ALUsrcB PCSrc 012 =1 Y IorD MDR2 ALUOut =1 Instruction[7-0] ALU 0 1 2 MemRead X PC IRWrite 1 0 address Read Data Write Data I R Read Data Accumulator WriteData ALUsrcA ALUop1 X+02 X-Y3 0+Y4 05 X+Y =0 RegWrite =X MemWrite MDR =0 1 0 RegDst =X

  10. T2 all instructions #opcode decode RISCEE 4 Architecture 01 2 P0=0 BZ=0 P0 | (~AluZero & BZ) =X =X ALUsrcB PCSrc 012 =X Y IorD MDR2 ALUOut =0 Instruction[7-0] ALU 0 1 2 MemRead X PC IRWrite 1 0 address Read Data Write Data =X I R Read Data Accumulator WriteData ALUsrcA ALUop1 X+02 X-Y3 0+Y4 05 X+Y =X RegWrite =X MemWrite MDR =0 1 0 RegDst =X

  11. T3 clear # ALUOut=0 RISCEE 4 Architecture 01 2 P0=0 BZ=0 P0 | (~AluZero & BZ) =X =X ALUsrcB PCSrc 012 =X Y IorD MDR2 ALUOut =0 Instruction[7-0] ALU 0 1 2 MemRead X PC IRWrite 1 0 address Read Data Write Data =4 I R Read Data Accumulator WriteData ALUsrcA ALUop1 X+02 X-Y3 0+Y4 05 X+Y =X RegWrite =X MemWrite MDR =0 1 0 RegDst =X

  12. T4 clear # A=ALUOut RISCEE 4 Architecture 01 2 P0=0 BZ=0 P0 | (~AluZero & BZ) =X =X ALUsrcB PCSrc 012 =X Y IorD MDR2 ALUOut =0 Instruction[7-0] ALU 0 1 2 MemRead X PC IRWrite 1 0 address Read Data Write Data =4 I R Read Data Accumulator WriteData ALUsrcA ALUop1 X+02 X-Y3 0+Y4 05 X+Y =X RegWrite =1 MemWrite MDR =0 1 0 RegDst =0

  13. T3 add # ALUOut=IR[7-0] RISCEE 4 Architecture 01 2 P0=0 BZ=0 P0 | (~AluZero & BZ) =X =2 ALUsrcB PCSrc 012 =X Y IorD MDR2 ALUOut =0 Instruction[7-0] ALU 0 1 2 MemRead X PC IRWrite 1 0 address Read Data Write Data =3 I R Read Data Accumulator WriteData ALUsrcA ALUop1 X+02 X-Y3 0+Y4 05 X+Y =X RegWrite =X MemWrite MDR =0 1 0 RegDst =X

  14. T4 add # MDR2=Mem[ALUOut] RISCEE 4 Architecture 01 2 P0=0 BZ=0 P0 | (~AluZero & BZ) =X =X ALUsrcB PCSrc 012 =0 Y IorD MDR2 ALUOut =1 Instruction[7-0] ALU 0 1 2 MemRead X PC IRWrite 10 address Read Data Write Data =X I R Read Data Accumulator WriteData ALUsrcA ALUop1 X+02 X-Y3 0+Y4 05 X+Y =X RegWrite =X MemWrite MDR =0 1 0 RegDst =X

  15. T5 add # ALUOut = MDR + A RISCEE 4 Architecture 01 2 P0=0 BZ=0 P0 | (~AluZero & BZ) =X =1 ALUsrcB PCSrc 012 =X Y IorD MDR2 ALUOut =0 Instruction[7-0] ALU 0 1 2 MemRead X PC IRWrite 1 0 address Read Data Write Data =5 I R Read Data Accumulator WriteData ALUsrcA ALUop1 X+02 X-Y3 0+Y4 05 X+Y =1 RegWrite =X MemWrite MDR =0 1 0 RegDst =X

  16. T6 add # A=ALUOut RISCEE 4 Architecture 01 2 P0=0 BZ=0 P0 | (~AluZero & BZ) =X =X ALUsrcB PCSrc 012 =X Y IorD MDR2 ALUOut =0 Instruction[7-0] ALU 0 1 2 MemRead X PC IRWrite 1 0 address Read Data Write Data =4 I R Read Data Accumulator WriteData ALUsrcA ALUop1 X+02 X-Y3 0+Y4 05 X+Y =X RegWrite =1 MemWrite MDR =0 1 0 RegDst =0

  17. T3 bne # if(A!=0) { PC=IR[7-0] } RISCEE 4 Architecture 01 2 P0=0 BZ=1 P0 | (~AluZero & BZ) =2 =X ALUsrcB PCSrc 012 =X Y IorD MDR2 ALUOut =0 Instruction[7-0] ALU 0 1 2 MemRead X PC IRWrite 1 0 address Read Data Write Data =1 I R Read Data Accumulator WriteData ALUsrcA ALUop1 X+02 X-Y3 0+Y4 05 X+Y =1 RegWrite =X MemWrite MDR =0 1 0 RegDst =X

More Related