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

block surround (block A (‘a1, ‘a2) ∼ (‘a3, ‘a4),<br />

(block B ‘l ∼ ‘a1, block C ‘t ∼ ‘a2),<br />

(block D ‘a3 ∼ ‘b, block E ‘a4 ∼ ‘r))<br />

(‘l l , ‘t t) ∼ (‘b b, ‘r r) {<br />

‘a1 l2. ‘a2 t2. ‘a3 b2. ‘a4 r2.<br />

l ; B ; l2 at (0, height(b2 ; D ; b)).<br />

t ; C ; t2 at (width(l ; B ; l2), max(height(b2 ;D ;b) + height((l2,t2);A;(b2,r2)),<br />

height(b2;D;b) + height(r2;E;r))).<br />

(l2, t2) ; A ; (b2, r2) at (width(l ; B ; l2), height(b2 ; D ; b)).<br />

b2 ; D ; b at (width(l ; B ; l2), 0).<br />

r2 ; E ; r at (width(l ; B ; l2) + width((l2,t2);A;(b2,r2)), height(b2;D;b)).<br />

}<br />

Figure 3.14: A combinator describing the function and layout <strong>of</strong> the grid interface in Figure<br />

3.13(b)<br />

each block instantiation can be given explicit co-ordinates.<br />

3. Since this arrangement is extremely common a new combinator can be created to<br />

describe it.<br />

4. A final alternative is to remove the layout interpretation from series and parallel com-<br />

positions and require explicit co-ordinates <strong>with</strong>in compositions. This is, in general,<br />

more trouble than it is worth - however the option can be left open <strong>of</strong> not using explicit<br />

co-ordinates and defaulting to the standard interpretation.<br />

We would suggest option (3) is the most practical and flexible. The purpose <strong>of</strong> combining<br />

explicit layout <strong>with</strong> combinators is to provide just this flexibility and a general combinator<br />

implementing this structure is illustrated in Figure 3.14. This combinator appears complex<br />

at first however it actually has a simple structure, <strong>with</strong> interface elements B, C, D and E<br />

placed on the four sides <strong>of</strong> the square element A. Applied to the interface elements in the<br />

grid example, this combinator is functionally identical:<br />

Theorem 4<br />

surround(grid m,n A, (map n B, map m B), (map m C, map n C)) =<br />

[map n B, map m B] ; grid m,n A ; [map m C, map n C]

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

Saved successfully!

Ooh no, something went wrong!