Presentation is loading. Please wait.

Presentation is loading. Please wait.

-Alan Nelson -Andy Kruger -Dongpu Jin.  CPU is one of the most important and complicated parts of a computer.  We are going to design, implement and.

Similar presentations


Presentation on theme: "-Alan Nelson -Andy Kruger -Dongpu Jin.  CPU is one of the most important and complicated parts of a computer.  We are going to design, implement and."— Presentation transcript:

1 -Alan Nelson -Andy Kruger -Dongpu Jin

2  CPU is one of the most important and complicated parts of a computer.  We are going to design, implement and test a pipelined processor.

3  VHDL:

4  Program Counter:  16 bits D-FF  Gives the address of current instruction.

5  Next instruction?  pc_src decides next instruction address.

6  Control single and corresponding funcitons:

7  Instruction memory:  Contain program “mif” file.  Output instruction base on the input address.

8  Register file:  Extra output pins for debugging.

9  Write to register:  Write back value.  Ground.  imm (load imm).  jal, bal.

10  Sign-Extension:  Extend imm part of D-type instruction from 7 bits to 16 bits.

11  ALU:  ALU_src determine operand of ALU.  ALUControl determine which operation it does (add, sub, AND, OR, XOR, SLL, SRL).

12  Data Memory:  ALU result determine address.  Register second output goes to MEM(sw).

13  Write back to register:  Select either data from memory or ALU result been written back.

14  We used D-FF to store:  Two outputs from register.  imm part of instruction.  All the control signal from control except pc_src.

15  Hazard Detect Unit:  When register write enable is high and write select is same as read select, want to forward WB data direct to ALU instead from register

16

17  Better understanding how CPU works.  Better understanding how software and hardware interact.  Learned working as a team to carry out a complex design task.

18  Demonstration next.


Download ppt "-Alan Nelson -Andy Kruger -Dongpu Jin.  CPU is one of the most important and complicated parts of a computer.  We are going to design, implement and."

Similar presentations


Ads by Google