summaryrefslogtreecommitdiffstats
path: root/archive
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2020-11-20 11:20:17 +0000
committerYann Herklotz <git@yannherklotz.com>2020-11-20 11:20:28 +0000
commit0eff396f938bae91dfc28e6f1052edfbde84d278 (patch)
tree81bc5f13eccc10b0c53aea3da79d803b239f9d44 /archive
parentdae277c624efa583d70630c52569da8c0fb62e41 (diff)
downloadoopsla21_fvhls-0eff396f938bae91dfc28e6f1052edfbde84d278.tar.gz
oopsla21_fvhls-0eff396f938bae91dfc28e6f1052edfbde84d278.zip
Fix algorithm section
Diffstat (limited to 'archive')
-rw-r--r--archive/algorithm.tex9
1 files changed, 9 insertions, 0 deletions
diff --git a/archive/algorithm.tex b/archive/algorithm.tex
index 1d66770..bd85e4b 100644
--- a/archive/algorithm.tex
+++ b/archive/algorithm.tex
@@ -1,3 +1,12 @@
+\subsection{Translating HTL to Verilog}
+
+Finally, we have to translate the HTL code into proper Verilog and prove that it behaves the same as the 3AC according to the Verilog semantics. Whereas HTL is a language that is specifically designed to represent the FSMDs we are interested in, Verilog is a general-purpose HDL.\@ So the challenge here is to translate our FSMD representation into a Verilog AST. However, as all the instructions are already expressed in Verilog, only the maps need to be translated to valid Verilog, and correct declarations for all the variables in the program need to be added as well.
+
+This translation seems quite straightforward, however, proving that it is correct is not that simple, as all the implicit assumptions that were made in HTL need to be translated explicitly to Verilog statements and needs it needs to be shown that these explicit behaviours are equivalent to the assumptions made in the HTL semantics.
+Figure~\ref{fig:accumulator_v} shows the final Verilog output that is generated. In general, the structure is similar to that of the HTL code, however, the control and datapath maps have been translated to case statements. The other main addition to the code is the initialisation of all the variables in the code to the correct bitwidths and the declaration of the inputs and outputs to the module, so that the module can be used inside a larger hardware design.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
\subsubsection{Reset signals}
\YH{This section could maybe go into the proof section instead.}