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 3. GENERATING PARAMETERISED LIBRARIES WITH LAYOUT 43<br />

SI :: SizeEnv → BlockEnv → Blkinst → (Exp × Exp)<br />

SIσ β bid p1 . . . pn =<br />

let (w, h) = σ(bid) in (w(p1 . . . pn), h(p1 . . . pn))<br />

SIσ β [ b1 , . . . , bn ] =<br />

let (w1, h1) = SIσ βb1 in<br />

.<br />

let (wn, hn) = SIσ βbn in<br />

(λ(x1, . . .,xn)(y1, . . . , yn). max(w1(x1, y1), . . . , wn(xn, yn)),<br />

λ(x1, . . . , xn)(y1, . . .,yn). h1(x1, y1) + · · · + hn(xn, yn))<br />

SIσ β b1 ; b2 =<br />

let (w1, h1) = SIσ βb1 in<br />

let (w2, h2) = SIσ βb2 in<br />

(λxy. let s = (ιs. B ′ β b1(x, s) ∧ B ′ β b2(s, y)) in w1(x, s) + w2(s, y),<br />

λxy. let s = (ιs. B ′ β b1(x, s) ∧ B ′ β b2(s, y)) in max(h1(x, s), h2(s, y)))<br />

Figure 3.4: Calculating a size function for a block instantiation<br />

S<br />

R<br />

T<br />

(a) Parallel composition<br />

R<br />

S<br />

T<br />

(b) Series composition<br />

Figure 3.5: Sizes generated for block compositions

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

Saved successfully!

Ooh no, something went wrong!