A modified version of Coq that contains an extraction backend for the functional hardware description language CLaSH.
Coq with CLaSH support
In order to support finite data types in Coq, the CompCert Integer library needs to be installed as well. Note that CompCert models the finite integer types as dependent modules. This causes the extraction backend to extract all functions and data types inside of this modul as well. However, this is no problem in the synthesizing process as the these functions and data types are optimized away by CLaSH as they are not linked to the extracted topEntity (sequential circuit) or root (combinational circuit) function of the specification. Take a look at the coq2clash examples after installing this version of Coq for further information.
See the Installation Guide for a detailed explanation of the tools that and libraries that have to be installed bevor the entire tool chain can be used.
In general, after following the installation guide, Coq can be started by:
$ /opt/coq/bin/coqide -R /opt/compcert/lib/compcert/coq compcert
and CLaSH using the following command:
$ stack --resolver lts-9.21 exec clashi
The library coq2clash contains examples how combinational and synchronous sequential are described.