Lec05a - 1 COMP 4300 Computer Architecture Datapath Dr....

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1 COMP 4300 Computer Architecture Datapath Dr. Xiao Qin Auburn University http://www.eng.auburn.edu/~xqin [email protected] Fall, 2010 2 Datapath for Branch Instructions beq rs, rt, offset if (R[rs] == R[rt]) then PC ← PC+4 + s_extend(offset<<2) op rs rt offset/immediate 5 5 16 RD1 RD2 RN1 RN2 WN WD RegWrite Register File Operation ALU E X T N D 16 32 Zero ADD <<2 PC +4 from instruction datapath 3 Datapath: More Detailed View 4 PC Instruction address Instruction Instruction memory Add Sum a. Instruction memory b. Program counter c. Adder Address Read data Data memory a. Data memory unit Write data MemRead MemWrite b. Sign-extension unit Sign extend 16 32 Simple Implementation • Include the functional units we need for each instruction Read register 1 Read register 2 Write register Write Data Registers ALU Data Data Zero ALU result RegWrite a. Registers b. ALU 5 5 5 Register numbers Read data 1 Read data 2 ALU operation 4 5 RTL Code for MIPS add 1. Fetch Instruction = ROM[PC], PC=PC+4 1. Read Operands ALUOp1 = Registers[rs-value], ALUOp2 = Registers[rt-value] 1. Add ALUOut = ALUOp1+ALUOp2 1. Write Result Registers[rd-value] = ALUOut 6...
View Full Document

This note was uploaded on 12/07/2011 for the course COMP 3400 taught by Professor Staff during the Fall '10 term at Auburn University.

Page1 / 20

Lec05a - 1 COMP 4300 Computer Architecture Datapath Dr....

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online