aboutsummaryrefslogtreecommitdiffstats
path: root/src/Compiler.v
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2020-06-30 19:52:59 +0100
committerYann Herklotz <git@yannherklotz.com>2020-06-30 19:52:59 +0100
commitf8ff27915f8c4d5fb6f31ec2a0a73f65cf604c43 (patch)
treee1186fac9de9c83ba0d0d0bc43bb9ac0fe86ef26 /src/Compiler.v
parentf26f3887d0b0ac286c317a5425a3a4781871cfc2 (diff)
downloadvericert-f8ff27915f8c4d5fb6f31ec2a0a73f65cf604c43.tar.gz
vericert-f8ff27915f8c4d5fb6f31ec2a0a73f65cf604c43.zip
Add htl pretty printing
Diffstat (limited to 'src/Compiler.v')
-rw-r--r--src/Compiler.v2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Compiler.v b/src/Compiler.v
index 98ef429..a34b359 100644
--- a/src/Compiler.v
+++ b/src/Compiler.v
@@ -51,6 +51,7 @@ From coqup Require
HTLgen.
Parameter print_RTL: Z -> RTL.program -> unit.
+Parameter print_HTL: HTL.program -> unit.
Definition print {A: Type} (printer: A -> unit) (prog: A) : A :=
let unused := printer prog in prog.
@@ -79,6 +80,7 @@ Definition transf_backend (r : RTL.program) : res Verilog.program :=
@@@ Inlining.transf_program
@@ print (print_RTL 1)
@@@ HTLgen.transl_program
+ @@ print print_HTL
@@ Veriloggen.transl_program.
Definition transf_frontend (p: Csyntax.program) : res RTL.program :=