diff --git a/examples/make.py b/examples/make.py index 3379880..c7d4896 100755 --- a/examples/make.py +++ b/examples/make.py @@ -165,6 +165,8 @@ Depth: {} platform.finalize(soc_fragment) v_output = platform.get_verilog(soc_fragment, name="litescope", special_overrides=xilinx_special_overrides) + if not os.path.exists("build"): + os.makedirs("build") v_output.write("build/litescope.v") if actions["build-bitstream"]: