diff options
author | Yann Herklotz <git@yannherklotz.com> | 2021-10-01 14:16:31 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2021-10-01 14:16:31 +0100 |
commit | 23c700b5fb35fb00d994cb66e4597fe8ea0b28e1 (patch) | |
tree | 8e5723152c11fd693aaa062adc27ad741d1701a0 /src/Compiler.v | |
parent | c5003f6f33c2f54e16f03773b49f93f33643d0c9 (diff) | |
download | vericert-23c700b5fb35fb00d994cb66e4597fe8ea0b28e1.tar.gz vericert-23c700b5fb35fb00d994cb66e4597fe8ea0b28e1.zip |
Fix compilation of new intermediate languages
Diffstat (limited to 'src/Compiler.v')
-rw-r--r-- | src/Compiler.v | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/Compiler.v b/src/Compiler.v index 268f451..ecea2fc 100644 --- a/src/Compiler.v +++ b/src/Compiler.v @@ -81,8 +81,9 @@ We then need to declare the external OCaml functions used to print out intermedi |*) Parameter print_RTL: Z -> RTL.program -> unit. -Parameter print_HTL: HTL.program -> unit. +Parameter print_HTL: Z -> HTL.program -> unit. Parameter print_RTLBlock: Z -> RTLBlock.program -> unit. +Parameter print_RTLPar: Z -> RTLPar.program -> unit. Definition print {A: Type} (printer: A -> unit) (prog: A) : A := let unused := printer prog in prog. @@ -191,8 +192,9 @@ Definition transf_backend (r : RTL.program) : res Verilog.program := @@@ time "Unused globals" Unusedglob.transform_program @@ print (print_RTL 7) @@@ HTLgen.transl_program - @@ print print_HTL + @@ print (print_HTL 0) @@ total_if HLSOpts.optim_ram Memorygen.transf_program + @@ print (print_HTL 1) @@ Veriloggen.transl_program. (*| @@ -239,12 +241,13 @@ Definition transf_hls_temp (p : Csyntax.program) : res Verilog.program := @@@ time "Unused globals" Unusedglob.transform_program @@ print (print_RTL 7) @@@ RTLBlockgen.transl_program - @@ print (print_RTLBlock 1) + @@ print (print_RTLBlock 0) @@ total_if HLSOpts.optim_if_conversion IfConversion.transf_program - @@ print (print_RTLBlock 2) + @@ print (print_RTLBlock 1) @@@ RTLPargen.transl_program + @@ print (print_RTLPar 0) @@@ HTLPargen.transl_program - @@ print print_HTL + @@ print (print_HTL 0) @@ Veriloggen.transl_program. (*| |