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()