aboutsummaryrefslogtreecommitdiffstats
path: root/src/ghdldrv
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-04-28 21:21:28 +0200
committerTristan Gingold <tgingold@free.fr>2021-04-28 21:39:05 +0200
commit6bc0f927f803debc51d5bb9bed46cf18b5a0435c (patch)
tree8f44b0003de36cd75ab1444196ea7eadc81aa626 /src/ghdldrv
parent4f7aaa50f93b667aee662de5f9308545bb00a5f2 (diff)
downloadghdl-6bc0f927f803debc51d5bb9bed46cf18b5a0435c.tar.gz
ghdl-6bc0f927f803debc51d5bb9bed46cf18b5a0435c.tar.bz2
ghdl-6bc0f927f803debc51d5bb9bed46cf18b5a0435c.zip
synth: add verilog output
Diffstat (limited to 'src/ghdldrv')
-rw-r--r--src/ghdldrv/ghdlsynth.adb6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ghdldrv/ghdlsynth.adb b/src/ghdldrv/ghdlsynth.adb
index 7a55cafee..890be63ec 100644
--- a/src/ghdldrv/ghdlsynth.adb
+++ b/src/ghdldrv/ghdlsynth.adb
@@ -43,6 +43,7 @@ with Vhdl.Utils;
with Netlists.Dump;
with Netlists.Disp_Vhdl;
+with Netlists.Disp_Verilog;
with Netlists.Disp_Dot;
with Netlists.Errors;
@@ -56,6 +57,7 @@ package body Ghdlsynth is
(Format_Default,
Format_Raw, Format_Dump, Format_Dot,
Format_Vhdl, Format_Raw_Vhdl,
+ Format_Verilog,
Format_None);
type Name_Id_Array is array (Natural range <>) of Name_Id;
@@ -203,6 +205,8 @@ package body Ghdlsynth is
Cmd.Oformat := Format_Vhdl;
elsif Option = "--out=raw-vhdl" then
Cmd.Oformat := Format_Raw_Vhdl;
+ elsif Option = "--out=verilog" then
+ Cmd.Oformat := Format_Verilog;
elsif Option = "-di" then
Flag_Debug_Noinference := True;
elsif Option = "-dc" then
@@ -439,6 +443,8 @@ package body Ghdlsynth is
Synth.Disp_Vhdl.Disp_Vhdl_Wrapper (Ent, Res, Inst);
when Format_Raw_Vhdl =>
Netlists.Disp_Vhdl.Disp_Vhdl (Res);
+ when Format_Verilog =>
+ Netlists.Disp_Verilog.Disp_Verilog (Res);
end case;
end Disp_Design;