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

Create successful ePaper yourself

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

CHAPTER 6. LAYOUT CASE STUDIES 143<br />

Figure 6.8: A butterfly network <strong>of</strong> degree 4 (2 4 = 16 inputs)<br />

block butterfly (int n, block R (‘a, ‘a) ∼ (‘a, ‘a)) (‘a l [m]) ∼ (‘a r[m]) {<br />

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

l ; rcomp (n,<br />

riffle (m/2) ;<br />

pair (m/2) ;<br />

map (m/2, vecpair ; R ; converse (vecpair)) ;<br />

converse (pair (m/2))<br />

) ; r.<br />

}<br />

6.4.1 Butterfly Combinator<br />

Figure 6.9: Quartz butterfly combinator<br />

A butterfly network is an arrangement <strong>of</strong> functional blocks as shown in Figure 6.8. The<br />

network is characterised by repeated instantiations <strong>of</strong> the same, or similar functional blocks,<br />

<strong>with</strong> a particular wiring arrangement between them. There are a number <strong>of</strong> different ways<br />

<strong>of</strong> describing butterfly networks in Quartz and one <strong>of</strong> the simplest is shown in Figure 6.9.<br />

This combinator uses repeated composition to connect together multiple instantiations <strong>of</strong><br />

the the functional block R <strong>with</strong> a wiring arrangement described by riffle and pair. The pair<br />

block converts a one dimensional vector into a two dimensional vector <strong>of</strong> pairs. The riffle<br />

operation splits a vector into two halves and then combines them in an interleaved fashion,<br />

an iterative version <strong>of</strong> this wiring block is given in Figure 6.10.<br />

The vecpair block converts a two element vector into a pair (tuple) <strong>of</strong> elements and its<br />

converse performs the opposite operation. The Quartz vecpair block is defined referencing

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

Saved successfully!

Ooh no, something went wrong!