Skip to content

Commit

Permalink
Update rivierapro and activehdl toolchain discovery. VUnit#148
Browse files Browse the repository at this point in the history
  • Loading branch information
kraigher committed Mar 12, 2016
1 parent 0b0c314 commit 4f71334
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vunit/activehdl_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def from_args(cls, output_path, args):
@classmethod
def _find_prefix(cls):
return cls.find_toolchain(["vsim",
"VSimSA"])
"avhdl"])

@classmethod
def is_available(cls):
Expand Down
10 changes: 9 additions & 1 deletion vunit/rivierapro_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,16 @@ def from_args(cls, output_path, args):

@classmethod
def _find_prefix(cls):
"""
Find RivieraPro toolchain.
Must have vsim and vsimsa binaries but no avhdl.exe
"""
def no_avhdl(path):
return not file_exists(join(path, "avhdl.exe"))
return cls.find_toolchain(["vsim",
"vsimsa"])
"vsimsa"],
constraints=[no_avhdl])

@classmethod
def is_available(cls):
Expand Down

0 comments on commit 4f71334

Please sign in to comment.