aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-03-26 18:41:58 +0100
committerTristan Gingold <tgingold@free.fr>2021-03-27 08:46:31 +0100
commitf23949f3eda545ff0c3ca1c49037b9a83700b099 (patch)
tree6656e842a4a39d2e8fd413b19332ed1ede8882b1
parentba2d9a39cb0c90c49f44d0d52258e8cc4920e15e (diff)
downloadghdl-f23949f3eda545ff0c3ca1c49037b9a83700b099.tar.gz
ghdl-f23949f3eda545ff0c3ca1c49037b9a83700b099.tar.bz2
ghdl-f23949f3eda545ff0c3ca1c49037b9a83700b099.zip
ghdlsynth.adb: also allow .psl files without any warning
-rw-r--r--src/files_map.adb3
-rw-r--r--src/ghdldrv/ghdlsynth.adb16
2 files changed, 13 insertions, 6 deletions
diff --git a/src/files_map.adb b/src/files_map.adb
index 1d9a5c7b8..4cb6d82bf 100644
--- a/src/files_map.adb
+++ b/src/files_map.adb
@@ -569,6 +569,9 @@ package body Files_Map is
then
return Language_Verilog;
end if;
+ if Ext (E + 1 .. Ext'Last) = "psl" then
+ return Language_Psl;
+ end if;
when others =>
return Language_Unknown;
end case;
diff --git a/src/ghdldrv/ghdlsynth.adb b/src/ghdldrv/ghdlsynth.adb
index fda42bcbc..ffb3fb10d 100644
--- a/src/ghdldrv/ghdlsynth.adb
+++ b/src/ghdldrv/ghdlsynth.adb
@@ -310,12 +310,16 @@ package body Ghdlsynth is
Libraries.Work_Library_Name := Id;
Libraries.Load_Work_Library (True);
else
- if Files_Map.Find_Language (Arg) /= Language_Vhdl then
- Errorout.Report_Msg
- (Warnid_Library, Option, No_Source_Coord,
- "unexpected extension for vhdl file %i",
- (1 => +Name_Table.Get_Identifier (Arg)));
- end if;
+ case Files_Map.Find_Language (Arg) is
+ when Language_Vhdl
+ | Language_Psl =>
+ null;
+ when others =>
+ Errorout.Report_Msg
+ (Warnid_Library, Option, No_Source_Coord,
+ "unexpected extension for vhdl file %i",
+ (1 => +Name_Table.Get_Identifier (Arg)));
+ end case;
Ghdlcomp.Compile_Load_File (Arg);
end if;