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.

FSM Controller <strong>for</strong> lw/sw<br />

6 states<br />

0<br />

Page | 163<br />

1<br />

lw or sw<br />

2<br />

lw<br />

sw<br />

3 5<br />

4<br />

NS0 should be active whenever NS0 = 1 is true <strong>for</strong><br />

Next <strong>St</strong>ate 1 + Next <strong>St</strong>ate3 + Next <strong>St</strong>ate 5<br />

Next <strong>St</strong>ate 1 = <strong>St</strong>ate 0 = S 2 S 1 S 0<br />

Next <strong>St</strong>ate 3 = <strong>St</strong>ate 2(lw)<br />

= S 2 S 1 S 0 (op5op4op3op2op1op0)<br />

NS0 = 1 + 3 + 5<br />

= <strong>St</strong>ate 0 + (<strong>St</strong>ate 2 & lw) + (<strong>St</strong>ate 2 & sw) + (<strong>St</strong>ate 3)<br />

NS1 = 2 + 3<br />

= (<strong>St</strong>ate 1 & lw + <strong>St</strong>ate 1 & sw)<br />

NS2 = 4 + 5<br />

= (<strong>St</strong>ate 2 & sw) + <strong>St</strong>ate 3<br />

NS0<br />

000<br />

001<br />

010<br />

011<br />

100<br />

101

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

Saved successfully!

Ooh no, something went wrong!