120 likes | 307 Views
CPU Design-Project. Multicycle Datapath with Finite State Machine as Control Unit. N.S.V Ravi Tej Uppu. Core Instruction set:-. Register Name, Number, Use:. Basic Instruction Formats:. o/p’s Control Op(3-0). PCSource. PCWriteCond. ALUop. PCWrite. ALUSrcB. IorD.
E N D
CPU Design-Project Multicycle Datapath with Finite State Machine as Control Unit N.S.V Ravi Tej Uppu
Register Name, Number, Use: Basic Instruction Formats:
o/p’s Control Op(3-0) PCSource PCWriteCond ALUop PCWrite ALUSrcB IorD ALUSrcA 2 1 0 Mem Write RegWrite MemtoReg Regdst IRWrite Inst(0-11) & PC(12-15) rs Read reg 1 read data 1 Read reg 2 Reg-file Write reg read data 2 Write data 1 mux 0 Inst(15-12) Instruction(11-8) Instruction(7-4) (Inst Reg) Instruction(4-0) zero A PC rt ALU-op Address Memory Mem data Write data 1 mux 0 1 mux 0 rd B 3 2 1 0 1 -1 Multicycle Datapath with Control unit: 1 mux 0 Sign Extend Memory Data Register
Instruction Decode Instruction Fetch ALUSrcA=0 IorD=0,IRwrt ALUSrcB=01 ALUOp=000 PCwrite=1 PCSource=00 ALUSrcA=0 ALUSrcB=10 ALUop=000 0 1 Start (op=‘lw’)or(op=‘sw’) op = R-type Mem Addr Comp Op=beq Op=‘jmp’ Jmp Comp Exec ALUSrcA=1 ALUSrcB=00 AlUop=000 Branch Comp 2 ALUSrcA=1 ALUSrcB=00 ALUop=011 PCwritecond PCSource=01 ALUSrcA=1 ALUSrcB=00 ALUop= opcode(2-0) 8 6 9 PCwrite PCSource=10 MemAccs MemAccs IorD=1 3 R-type Comp Memwrite IorD=1 5 RegDst=1 Regwrite Memtoreg=0 7 Finite State Machine Control: Mem Read Comp 4 RegDst=0 Regwrite MemtoReg=1
- Make changes in the core instruction set and add instructions like (a) Jump register (b) Shift left logic -Implement the control unit as a Micro Computer using: (a) Micro Instructions (b) Microprogramming. -Make effective use of the registers defined. Conclusion: The above designed CPU can execute a sequence of instructions which include R-type, Data transfer, branching etc., while its operations for programs which include functions is to be tested. Future modifications: