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+ I +J Format instructions 1w, sw, beq, add, sub, and<br />

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

- use one clock cycle <strong>for</strong> all instructions no data path resource is used more than<br />

once per inst.<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 />

Page | 149<br />

from sign ext<br />

+4<br />

Add<br />

PC<br />

SL-2<br />

Aluop<br />

Read address<br />

Add<br />

Inst<br />

mem 15-11 20-16<br />

Branch<br />

1 0<br />

mux RegDst<br />

0~31 write data<br />

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

rr1 rr2 wr wd<br />

Sign<br />

Reg file<br />

Reg write<br />

extension<br />

32 Read Read<br />

Data 2 Data 1<br />

ALUSrc<br />

1 0<br />

mux<br />

ALU<br />

Control<br />

3 Aluop<br />

ALU<br />

MemWrite<br />

MemRead<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!