From: Sebastien Bourdeauducq Date: Mon, 2 Dec 2013 12:03:26 +0000 (+0100) Subject: examples/cordic/cordic_impl: do not fail if build dir does not exist X-Git-Tag: 24jan2021_ls180~2099^2~409 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b3c79738e167fe10fe4ceb656558b9df7578c625;p=litex.git examples/cordic/cordic_impl: do not fail if build dir does not exist --- diff --git a/examples/cordic/cordic_impl.py b/examples/cordic/cordic_impl.py index d7ac084f..9cc79194 100644 --- a/examples/cordic/cordic_impl.py +++ b/examples/cordic/cordic_impl.py @@ -3,13 +3,14 @@ import json from migen.fhdl.std import * from migen.genlib.cordic import Cordic +from mibuild.tools import mkdir_noerror from mibuild.generic_platform import * from mibuild.xilinx_ise import XilinxISEPlatform, CRG_SE - class CordicImpl(Module): def __init__(self, name, **kwargs): self.name = name + mkdir_noerror("build") json.dump(kwargs, open("build/{}.json".format(name), "w")) self.platform = platform = Platform() self.submodules.cordic = Cordic(**kwargs)