%% For double-blind review submission, w/o CCS and ACM Reference (max submission space) \documentclass[sigplan,10pt,pagebackref=true,review,anonymous]{acmart}\settopmatter{printfolios=true,printccs=false,printacmref=false} %\documentclass[pagebackref=true,acmsmall,review]{acmart}\settopmatter{printfolios=true,printccs=false,printacmref=false} %% For double-blind review submission, w/ CCS and ACM Reference %\documentclass[acmsmall,review,anonymous]{acmart}\settopmatter{printfolios=true} %% For single-blind review submission, w/o CCS and ACM Reference (max submission space) %\documentclass[acmsmall,review]{acmart}\settopmatter{printfolios=true,printccs=false,printacmref=false} %% For single-blind review submission, w/ CCS and ACM Reference %\documentclass[acmsmall,review]{acmart}\settopmatter{printfolios=true} %% For final camera-ready submission, w/ required CCS and ACM Reference %\documentclass[acmsmall]{acmart}\settopmatter{} %% Journal information %% Supplied to authors by publisher for camera-ready submission; %% use defaults for review submission. \acmJournal{PACMPL} \acmVolume{1} \acmNumber{CONF} % CONF = POPL or ICFP or OOPSLA \acmArticle{1} \acmYear{2018} \acmMonth{1}\acmDOI{} \startPage{1} %% Copyright information %% Supplied to authors (based on authors' rights management selection; %% see authors.acm.org) by publisher for camera-ready submission; %% use 'none' for review submission. \setcopyright{none} %\setcopyright{acmcopyright} %\setcopyright{acmlicensed} %\setcopyright{rightsretained} %\copyrightyear{2018} %% Bibliography style \bibliographystyle{ACM-Reference-Format} %% Citation style %\citestyle{acmauthoryear} \usepackage{amsmath} \usepackage{booktabs} \usepackage{mathpartir} \usepackage{pgfplots} \usepackage{soul} \usepackage{subcaption} \usepackage{tikz} \usepackage{minted} \setminted{fontsize=\small} \usemintedstyle{manni} \newif\ifCOMMENTS \COMMENTStrue \newcommand{\Comment}[3]{\ifCOMMENTS\textcolor{#1}{{\bf [\![#2:} #3{\bf ]\!]}}\fi} \newcommand\JW[1]{\Comment{red!75!black}{JW}{#1}} \newcommand\YH[1]{\Comment{green!50!blue}{YH}{#1}} \newcommand\JP[1]{\Comment{blue!50!black}{JP}{#1}} \newcommand\NR[1]{\Comment{yellow!50!black}{NR}{#1}} \newcommand\JWcouldcut[1]{{\st{#1}}} \definecolor{compcert}{HTML}{66c2a5} \definecolor{formalhls}{HTML}{fc8d62} \definecolor{keywordcolour}{HTML}{8f0075} \definecolor{functioncolour}{HTML}{721045} \definecolor{constantcolour}{HTML}{0000bb} \newcommand\yhkeywordsp[1]{\;\;\texttt{\textcolor{keywordcolour}{#1}}} \newcommand\yhkeyword[1]{\texttt{\textcolor{keywordcolour}{#1}}} \newcommand\yhfunctionsp[1]{\;\;\texttt{\textcolor{functioncolour}{#1}}} \newcommand\yhfunction[1]{\texttt{\textcolor{functioncolour}{#1}}} \newcommand\yhconstant[1]{\texttt{\textcolor{constantcolour}{#1}}} \newcommand{\vericert}{Veri\-cert}% \newcommand{\compcert}{Comp\-Cert}% \newcommand{\legup}{LegUp}% \begin{document} %% Title information \title[Formal Verification of HLS]{Formal Verification of High-Level Synthesis} %% when present, will be used in %% header instead of Full Title. %\titlenote{with title note} %% \titlenote is optional; %% can be repeated if necessary; %% contents suppressed with 'anonymous' %\subtitle{Subtitle} %% \subtitle is optional %\subtitlenote{with subtitle note} %% \subtitlenote is optional; %% can be repeated if necessary; %% contents suppressed with 'anonymous' %% Author information %% Contents and number of authors suppressed with 'anonymous'. %% Each author should be introduced by \author, followed by %% \authornote (optional), \orcid (optional), \affiliation, and %% \email. %% An author may have multiple affiliations and/or emails; repeat the %% appropriate command. %% Many elements are not rendered, but should be provided for metadata %% extraction tools. %% Author with single affiliation. \author{Yann Herklotz} \orcid{0000-0002-2329-1029} \affiliation{ \institution{Imperial College London} \country{UK} } \email{yann.herklotz15@imperial.ac.uk} \author{James Pollard} \orcid{0000-0003-1404-1527} \affiliation{ \institution{Imperial College London} \country{UK} } \email{james.pollard16@imperial.ac.uk} \author{Nadesh Ramanathan} \orcid{0000-0000-0000-0000} \affiliation{ \institution{Imperial College London} \country{UK} } \email{n.ramanathan14@imperial.ac.uk} \author{John Wickerson} \orcid{0000-0000-0000-0000} \affiliation{ \institution{Imperial College London} \country{UK} } \email{j.wickerson@imperial.ac.uk} \begin{abstract} High-level synthesis (HLS), which refers to the automatic compilation of software into hardware, is rapidly gaining popularity. In a world increasingly reliant on application-specific hardware accelerators, HLS promises hardware designs of comparable performance and energy efficiency to those coded by hand in a hardware description language like Verilog, while maintaining the convenience and the rich ecosystem of software development. However, current HLS tools cannot always guarantee that the hardware designs they produce are equivalent to the software they were given, thus undermining any reasoning conducted at the software level. Worse, there is mounting evidence that existing HLS tools are actually quite unreliable, sometimes generating wrong hardware or crashing when given valid inputs. To address this problem, we present the first HLS tool that is mechanically verified to preserve the behaviour of its input software. Our tool, called \vericert{}, extends the \compcert{} verified C compiler with a new hardware-specific intermediate language and a Verilog back end, and has been proven correct in Coq. \vericert{} supports all C constructs except for function pointers, recursive function calls, non-integer types and global variables. An evaluation on all suitable PolyBench benchmarks indicates that it generates hardware with area and cycle counts around a magnitude larger than an existing, unverified HLS tool. \end{abstract} %% 2012 ACM Computing Classification System (CSS) concepts %% Generate at 'http://dl.acm.org/ccs/ccs.cfm'. \begin{CCSXML} 10011007.10011006.10011008 Software and its engineering~General programming languages 500 10003456.10003457.10003521.10003525 Social and professional topics~History of programming languages 300 \end{CCSXML} \ccsdesc[500]{Software and its engineering~General programming languages} \ccsdesc[300]{Social and professional topics~History of programming languages} %% End of generated code %% Keywords %% comma separated list \keywords{\compcert{}, Coq, high-level synthesis, C, Verilog} \maketitle \input{introduction} \input{algorithm} \input{verilog} \input{proof} \input{evaluation} \input{related} \input{conclusion} %% Acknowledgments \begin{acks} %% acks environment is optional %% contents suppressed with 'anonymous' %% Commands \grantsponsor{}{}{} and %% \grantnum[]{}{} should be used to %% acknowledge financial support and will be used by metadata %% extraction tools. This material is based upon work supported by the \grantsponsor{GS100000001}{National Science Foundation}{http://dx.doi.org/10.13039/100000001} under Grant No.~\grantnum{GS100000001}{nnnnnnn} and Grant No.~\grantnum{GS100000001}{mmmmmmm}. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author and do not necessarily reflect the views of the National Science Foundation. \end{acks} %% Bibliography \bibliography{references.bib} %% Appendix \input{appendix} \end{document} %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% TeX-command-extra-options: "-shell-escape" %%% End: