Skip to content

Commit

Permalink
build/vhd2v_converter: Create build_dir if not existing.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Nov 28, 2024
1 parent 76829aa commit 30aeaf5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions litex/build/vhd2v_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ def do_finalize(self):
if len(v_list) != 0:
inst_name += f"_{len(v_list)}"


# Create build_dir if not existing.
if not os.path.exists(self._build_dir):
os.makedirs(self._build_dir)

verilog_out = os.path.join(self._build_dir, f"{inst_name}.v")

ip_params = dict()
Expand Down

0 comments on commit 30aeaf5

Please sign in to comment.