From 30aeaf544aa2953c69f7bc67020b818fffd01390 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 28 Nov 2024 13:32:34 +0100 Subject: [PATCH] build/vhd2v_converter: Create build_dir if not existing. --- litex/build/vhd2v_converter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/litex/build/vhd2v_converter.py b/litex/build/vhd2v_converter.py index 1fb2bd647..9e378b493 100644 --- a/litex/build/vhd2v_converter.py +++ b/litex/build/vhd2v_converter.py @@ -152,6 +152,11 @@ class VHD2VConverter(Module): 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()