Skip to content

Commit e8a9a41

Browse files
wernetaLarsAsplund
authored andcommitted
Added support for .svp protected SystemVerilog file extensions
1 parent 851aaf8 commit e8a9a41

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

tests/unit/test_project.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,6 +1599,7 @@ def test_file_type_of(self):
15991599
self.assertEqual(file_type_of("file.vhd"), "vhdl")
16001600
self.assertEqual(file_type_of("file.vhdl"), "vhdl")
16011601
self.assertEqual(file_type_of("file.sv"), "systemverilog")
1602+
self.assertEqual(file_type_of("file.svp"), "systemverilog")
16021603
self.assertEqual(file_type_of("file.v"), "verilog")
16031604
self.assertEqual(file_type_of("file.vams"), "verilog")
16041605
self.assertRaises(RuntimeError, file_type_of, "file.foo")

vunit/source_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def add_to_library(self, library):
348348
# lower case representation of supported extensions
349349
VHDL_EXTENSIONS = (".vhd", ".vhdl", ".vho")
350350
VERILOG_EXTENSIONS = (".v", ".vp", ".vams", ".vo")
351-
SYSTEM_VERILOG_EXTENSIONS = (".sv",)
351+
SYSTEM_VERILOG_EXTENSIONS = (".sv", ".svp")
352352
VERILOG_FILE_TYPES = ("verilog", "systemverilog")
353353
FILE_TYPES = ("vhdl",) + VERILOG_FILE_TYPES
354354

0 commit comments

Comments
 (0)