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.

APPENDIX D. CIRCUIT LAYOUT CASE STUDIES 304<br />

height_def: "height == % clk bits n (a, b) c. let m = (2 pwr n) in Height ((a, b)<br />

;;; snd $ (rev $ (m div 2)) ;; converse $ (half $ (m div 2)) ;; butterfly $<br />

(n, sort2 $ clk $ bits) ;;; c)"<br />

width_def: "width == % clk bits n (a, b) c. let m = (2 pwr n) in Width ((a, b)<br />

;;; snd $ (rev $ (m div 2)) ;; converse $ (half $ (m div 2)) ;; butterfly $ (<br />

n, sort2 $ clk $ bits) ;;; c)"<br />

merger_def: "merger == (| 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 : "!! (clk::wire) (bits::int) (n::int) (a::((wire)vector)<br />

vector) (b::((wire)vector)vector) (c::((wire)vector)vector). 0

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

Saved successfully!

Ooh no, something went wrong!