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 B. THEORETICAL BASIS FOR LAYOUT REASONING 193<br />

declare zip_height_def [simp]<br />

declare zip_width_def [simp]<br />

declare zip_def [simp]<br />

section {* Unzip block *}<br />

consts<br />

defs<br />

unzip_struct:: "int=>(’a)vector=>’b=>bool"<br />

unzip_height:: "int=>(’a)vector=>’b=>int"<br />

unzip_width:: "int=>(’a)vector=>’b=>int"<br />

unzip:: "(int=>(’a)vector=>’b=>bool, int=>(’a)vector=>’b=>int)block"<br />

unzip_height_def: "unzip_height == % n x y. 0"<br />

unzip_width_def: "unzip_width == % n x y. 0"<br />

unzip_def: "unzip == (| Def = unzip_struct, Height = unzip_height, Width =<br />

unzip_width|)"<br />

declare unzip_height_def [simp]<br />

declare unzip_width_def [simp]<br />

declare unzip_def [simp]<br />

end<br />

B.5 SeriesComposition<br />

header {* Definition <strong>of</strong> Quartz series composition *}<br />

theory SeriesComposition = Block + IntAlgebra:<br />

constdefs<br />

ser:: "[(’a=>’b=>bool,’a=>’b=>int)block,(’b=>’c=>bool,’b=>’c=>int)block]=>(’a=>’c<br />

=>bool, ’a=>’c=>int)block" (infixl ";;" 48)<br />

"ser == (% B1 B2. (| Def = % x y. EX s. (Def B1) x s & (Def B2) s y,<br />

Height = % x y. let s = (THE s. (Def B1) x s & (Def B2) s y) in<br />

max (Height B1 x s) (Height B2 s y),<br />

Width = % x y. let s = (THE s. (Def B1) x s & (Def B2) s y) in<br />

(Width B1 x s) + (Width B2 s y)|))"<br />

section {* Properties <strong>of</strong> series composition *}<br />

theorem width_ser_ge0: "!! P Q x y. [| !! x y. 0

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

Saved successfully!

Ooh no, something went wrong!