05.08.2014 Views

Lecture Notes for Computer Architecture II - St. Cloud State University

Lecture Notes for Computer Architecture II - St. Cloud State University

Lecture Notes for Computer Architecture II - St. Cloud State University

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Processor Design - Data path <strong>for</strong> R&I <strong>for</strong>mat instructions<br />

Example :<br />

Implement R <strong>for</strong>mat with I Format instructions lw, add, sub, and<br />

- put together all independent data path.<br />

- use one clock cycle <strong>for</strong> all instructions<br />

no data path resource is used more than once per inst.<br />

Page | 147<br />

memory <strong>for</strong> instructions memory <strong>for</strong> data<br />

Share many elements in the data path. -Use a mux with a data selector.<br />

Add<br />

+4<br />

PC<br />

15-11 20-16<br />

Aluop<br />

0~31 write data<br />

0~15 25-21 20-16<br />

rr11 rr2 wr wd<br />

Sign<br />

extension<br />

Inst<br />

mem<br />

Reg file<br />

1 0<br />

mux<br />

32 Read Read<br />

Data 2 Data 1<br />

ALUSrc<br />

1 0<br />

RegDst<br />

Reg write<br />

ALU<br />

Control<br />

3 Aluop<br />

ALU<br />

MemRead<br />

Address<br />

Data mem<br />

MemtoRegister<br />

1 0<br />

mux

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!