Skip to content

Commit

Permalink
Verilog AMS *.vams recognized as Verilog files. #109
Browse files Browse the repository at this point in the history
  • Loading branch information
kraigher committed Feb 15, 2016
1 parent f192569 commit 7a8bb69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion vunit/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ def more_recent(file_name, than_file_name):

# lower case representation of supported extensions
VHDL_EXTENSIONS = (".vhd", ".vhdl")
VERILOG_EXTENSIONS = (".v", ".vp", ".sv")
VERILOG_EXTENSIONS = (".v", ".vp", ".sv", ".vams")


def file_type_of(file_name):
Expand Down
1 change: 1 addition & 0 deletions vunit/test/unit/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,7 @@ def test_file_type_of(self):
self.assertEqual(file_type_of("file.vhdl"), "vhdl")
self.assertEqual(file_type_of("file.sv"), "verilog")
self.assertEqual(file_type_of("file.v"), "verilog")
self.assertEqual(file_type_of("file.vams"), "verilog")
self.assertRaises(RuntimeError, file_type_of, "file.foo")

def create_dummy_three_file_project(self, update_file1=False):
Expand Down

0 comments on commit 7a8bb69

Please sign in to comment.