From ae3bcc22e74da69385ef2cdf1558455011387bd1 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Tue, 5 Jul 2022 21:44:50 +0200 Subject: [PATCH] build/lattice/{radiant|diamnd}: fix typo --- litex/build/lattice/diamond.py | 4 ++-- litex/build/lattice/radiant.py | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/litex/build/lattice/diamond.py b/litex/build/lattice/diamond.py index 6aea56720..494b01644 100644 --- a/litex/build/lattice/diamond.py +++ b/litex/build/lattice/diamond.py @@ -41,7 +41,7 @@ class LatticeDiamondToolchain(GenericToolchain): timingstrict = False, **kwargs): - self._timinstrict = timingstrict + self._timingstrict = timingstrict return GenericToolchain.build(self, platform, fragment, **kwargs) @@ -183,7 +183,7 @@ class LatticeDiamondToolchain(GenericToolchain): if subprocess.call(shell + [script]) != 0: raise OSError("Error occured during Diamond's script execution.") - if self.timingstrict: + if self._timingstrict: self._check_timing() def _check_timing(self): diff --git a/litex/build/lattice/radiant.py b/litex/build/lattice/radiant.py index 03dec9033..966d1cefc 100644 --- a/litex/build/lattice/radiant.py +++ b/litex/build/lattice/radiant.py @@ -80,11 +80,11 @@ class LatticeRadiantToolchain(GenericToolchain): def __init__(self): super().__init__() - self._timingstrict = True + self._timingstrict = False self._synth_mode = "radiant" def build(self, platform, fragment, - timingstrict = True, + timingstrict = False, synth_mode = "radiant", **kwargs): @@ -234,7 +234,7 @@ synth_nexus -top {build_name} -vm {build_name}_yosys.vm return build_script_file def run_script(self, script): - if synth_mode == "yosys": + if self._synth_mode == "yosys": self._run_yosys() if sys.platform in ("win32", "cygwin"): @@ -251,7 +251,7 @@ synth_nexus -top {build_name} -vm {build_name}_yosys.vm if subprocess.call(shell + [script]) != 0: raise OSError("Error occured during Radiant's script execution.") - if timingstrict: + if self._timingstrict: self._check_timing() def _check_timing(self): @@ -288,4 +288,4 @@ def radiant_build_args(parser): toolchain_group.add_argument("--synth-mode", default="synplify", help="Synthesis mode (synplify or yosys).") def radiant_build_argdict(args): - return {"synth_mode": args.synth_mode} + return {"synth_mode": args.synth_mode}