24.04.2013 Views

Verification of Parameterised FPGA Circuit Descriptions with Layout ...

Verification of Parameterised FPGA Circuit Descriptions with Layout ...

Verification of Parameterised FPGA Circuit Descriptions with Layout ...

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.

CHAPTER 4. VERIFYING CIRCUIT LAYOUTS 100<br />

R<br />

R R R<br />

R<br />

R<br />

R R<br />

R<br />

R<br />

R R R<br />

R<br />

R<br />

R<br />

R<br />

R<br />

R<br />

R R R<br />

R<br />

R<br />

R<br />

R R R<br />

Figure 4.18: An H-Tree arrangement <strong>of</strong> R blocks for n = 5<br />

block htree (int n, block R (‘a, ‘a) ∼ ‘a) (‘a i [m]) ∼ (‘a o) {<br />

const m = 2 ∗∗ n.<br />

‘a st1 in[m/2], st2 in[m/2], st1 out, st2 out.<br />

if n == 0 { o = i[0]. } else {<br />

i ; half (m/2) ; (st1 in, st2 in) at (0,0).<br />

if (n mod 2 == 0) {<br />

// Vertical sub−tree arrangement<br />

st1 in ; htree (n−1, R) ; st1 out at (0,0).<br />

(st1 out, st2 out) ; R ; o<br />

at (0, height(st1 in ; htree (n−1, R) ; st1 out)).<br />

st2 in ; htree (n−1, R) ; st2 out<br />

at (0, height(st1 in;htree (n−1, R);st1 out) +<br />

height ((st1 out, st2 out);R;o)).<br />

} else {<br />

// Horizontal sub−tree arrangement<br />

st1 in ; htree (n−1, R) ; st1 out at (0,0).<br />

(st1 out, st2 out) ; R ; o<br />

at (width(st1 in ;htree (n−1, R) ; st1 out), 0).<br />

st2 in ; htree (n−1, R) ; st2 out<br />

at (width(st1 in;htree (n−1, R);st1 out) +<br />

width ((st1 out, st2 out);R;o), 0).<br />

} .<br />

} .<br />

}<br />

Figure 4.19: Quartz description for the a H-tree combinator<br />

R<br />

R<br />

R

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

Saved successfully!

Ooh no, something went wrong!