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 4. VERIFYING CIRCUIT LAYOUTS 88<br />

4.6 Proving the Prelude Library<br />

One set <strong>of</strong> Quartz blocks it is essential to prove is the prelude library, the basic set <strong>of</strong><br />

operations that encode a variety <strong>of</strong> useful functions. The majority <strong>of</strong> the blocks in the<br />

prelude are actually wiring constructs rather than combinators, however it is still necessary<br />

to give them all a layout interpretation. We have done this according to the following rules:<br />

1. Wiring blocks, which simply re-arrange signals, are given size 0 × 0.<br />

2. Repeated composition (R n /rcomp) is laid out horizontally. /tri and ˜ /irt blocks<br />

which both use repeated composition are laid out vertically. map is laid out vertically,<br />

as are col and rdr .<br />

3. All other blocks are laid out horizontally, <strong>with</strong> the exception <strong>of</strong> grid which is two<br />

dimensional.<br />

The prelude library provides a fairly comprehensive set <strong>of</strong> blocks <strong>with</strong> different signal arrange-<br />

ments and is thus useful for experimenting <strong>with</strong> how automatic pro<strong>of</strong> tools can be tuned to<br />

minimise the human intervention in pro<strong>of</strong>s.<br />

4.6.1 Pro<strong>of</strong>s <strong>with</strong> Tacticals<br />

Our initial approach to automating pro<strong>of</strong> <strong>of</strong> the Prelude library involves generating pro<strong>of</strong><br />

tacticals in the Quartz compiler Isabelle module. Tacticals combine elementary pro<strong>of</strong> steps<br />

and automated tactics <strong>with</strong> basic repetition or choice operations.<br />

We design tacticals based on experience <strong>with</strong> hand-pro<strong>of</strong> <strong>of</strong> a variety <strong>of</strong> prelude blocks. These<br />

tacticals are based on invocations <strong>of</strong> Isabelle’s simplifier <strong>with</strong> specific simplification rules,<br />

interspersed <strong>with</strong> uses <strong>of</strong> the primitive rule method to decompose goals into multiple simpler<br />

sub-goals using theorems such as Theorems 13 and 17. Auto-generating pro<strong>of</strong> scripts for all<br />

prelude blocks we find that many theories run correctly <strong>with</strong> the automatically generated<br />

tacticals <strong>with</strong>out any human intervention, however some require intervention.<br />

The conjugate and conjugate2 blocks (defined in Figure 4.12) require additional intervention<br />

to prove the validity <strong>of</strong> their size functions due to the use <strong>of</strong> series composition. We de-

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

Saved successfully!

Ooh no, something went wrong!