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.

APPENDIX C. PLACED COMBINATOR LIBRARIES 227<br />

C.1.10 loop<br />

/∗∗ Loop. Ruby x (loop R) y. R for some s. ∗/<br />

block loop (block R (‘a, ˆd1 ‘b) ∼ (ˆd1∗ ‘b, ‘c)) (‘a i) ∼ (‘c o)<br />

attributes {<br />

height = height((i, s) ; R ; (s, o)).<br />

width = width((i, s) ;R ; (s, o)).<br />

layout−proved.<br />

} {<br />

‘b s.<br />

(i, s) ; R ; (s, o) at (0,0).<br />

}<br />

theory loop = Quartz<strong>Layout</strong>:<br />

section {* Function definitions *}<br />

consts<br />

struct:: "(((’t632*’t633)=>(’t633*’t634)=>bool,(’t632*’t633)=>(’t633*’t634)=>int)<br />

block)=>’t632=>’t634=>bool"<br />

height:: "(((’t632*’t633)=>(’t633*’t634)=>bool,(’t632*’t633)=>(’t633*’t634)=>int)<br />

block)=>’t632=>’t634=>int"<br />

width:: "(((’t632*’t633)=>(’t633*’t634)=>bool,(’t632*’t633)=>(’t633*’t634)=>int)<br />

block)=>’t632=>’t634=>int"<br />

loop:: "((((’t632*’t633)=>(’t633*’t634)=>bool,(’t632*’t633)=>(’t633*’t634)=>int)<br />

block)=>’t632=>’t634=>bool, (((’t632*’t633)=>(’t633*’t634)=>bool,(’t632*’t633<br />

)=>(’t633*’t634)=>int)block)=>’t632=>’t634=>int)block"<br />

defs<br />

struct_def: "struct == % R i o_. EX (s::’t633). Def ((i, s) ;;; R ;;; (s, o_))"<br />

height_def: "height == % R i o_. let s = (THE (s::’t633). Def ((i, s) ;;; R ;;; (<br />

s, o_))) in Height ((i, s) ;;; R ;;; (s, o_))"<br />

width_def: "width == % R i o_. let s = (THE (s::’t633). Def ((i, s) ;;; R ;;; (s,<br />

o_))) in Width ((i, s) ;;; R ;;; (s, o_))"<br />

loop_def: "loop == (| Def = struct, Height = height, Width = width |)"<br />

declare width_def [simp]<br />

declare height_def [simp]<br />

declare struct_def [simp]<br />

section {* Validity <strong>of</strong> width and height functions *}<br />

theorem height_ge0_int: "!! (R::(((’t632*’t633)=>(’t633*’t634)=>bool,(’t632*’t633)<br />

=>(’t633*’t634)=>int)block)) (i::’t632) (o_::’t634). [| ALL (qs722::(’t632*’t633<br />

)) (qs723::(’t633*’t634)). 0 <br />

0 (’t633*’t634)=>bool,(’t632*’t633)=>(’<br />

t633*’t634)=>int)block)) (i::’t632) (o_::’t634). [| ALL (qs722::(’t632*’t633)) (<br />

qs723::(’t633*’t634)). 0 <br />

0

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

Saved successfully!

Ooh no, something went wrong!