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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example :<br />

Implement R <strong>for</strong>mat with I Format instructions lw, sw, 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 />

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

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

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

Page | 148<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 />

Reg write<br />

RegDst<br />

ALU<br />

0~5 Control 3 Aluop<br />

MemWrite<br />

MemRead<br />

ALU<br />

Address<br />

Data mem<br />

data<br />

MemtoRegister<br />

1 0<br />

mux

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

Saved successfully!

Ooh no, something went wrong!