15.07.2013 Views

EECE 353: Digital Systems Design Lecture 10: Datapath ... - Courses

EECE 353: Digital Systems Design Lecture 10: Datapath ... - Courses

EECE 353: Digital Systems Design Lecture 10: Datapath ... - Courses

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Suppose we want to sort k numbers:<br />

for (i=0 to k-2) do<br />

A = Ri;<br />

for (j=i+1 to k-1) do<br />

B = Rj<br />

if (B < A) then<br />

Ri = B<br />

Rj = A<br />

A = Ri<br />

end if;<br />

end for;<br />

end for;<br />

<strong>Lecture</strong> <strong>10</strong>, Page 33

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

Saved successfully!

Ooh no, something went wrong!