From b3c79738e167fe10fe4ceb656558b9df7578c625 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 2 Dec 2013 13:03:26 +0100 Subject: [PATCH] examples/cordic/cordic_impl: do not fail if build dir does not exist --- examples/cordic/cordic_impl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.30.2