build/lattice/{radiant|diamnd}: fix typo

This commit is contained in:
Gwenhael Goavec-Merou 2022-07-05 21:44:50 +02:00
parent 8e6ffff37a
commit ae3bcc22e7
2 changed files with 7 additions and 7 deletions

View File

@ -41,7 +41,7 @@ class LatticeDiamondToolchain(GenericToolchain):
timingstrict = False, timingstrict = False,
**kwargs): **kwargs):
self._timinstrict = timingstrict self._timingstrict = timingstrict
return GenericToolchain.build(self, platform, fragment, **kwargs) return GenericToolchain.build(self, platform, fragment, **kwargs)
@ -183,7 +183,7 @@ class LatticeDiamondToolchain(GenericToolchain):
if subprocess.call(shell + [script]) != 0: if subprocess.call(shell + [script]) != 0:
raise OSError("Error occured during Diamond's script execution.") raise OSError("Error occured during Diamond's script execution.")
if self.timingstrict: if self._timingstrict:
self._check_timing() self._check_timing()
def _check_timing(self): def _check_timing(self):

View File

@ -80,11 +80,11 @@ class LatticeRadiantToolchain(GenericToolchain):
def __init__(self): def __init__(self):
super().__init__() super().__init__()
self._timingstrict = True self._timingstrict = False
self._synth_mode = "radiant" self._synth_mode = "radiant"
def build(self, platform, fragment, def build(self, platform, fragment,
timingstrict = True, timingstrict = False,
synth_mode = "radiant", synth_mode = "radiant",
**kwargs): **kwargs):
@ -234,7 +234,7 @@ synth_nexus -top {build_name} -vm {build_name}_yosys.vm
return build_script_file return build_script_file
def run_script(self, script): def run_script(self, script):
if synth_mode == "yosys": if self._synth_mode == "yosys":
self._run_yosys() self._run_yosys()
if sys.platform in ("win32", "cygwin"): 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: if subprocess.call(shell + [script]) != 0:
raise OSError("Error occured during Radiant's script execution.") raise OSError("Error occured during Radiant's script execution.")
if timingstrict: if self._timingstrict:
self._check_timing() self._check_timing()
def _check_timing(self): 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).") toolchain_group.add_argument("--synth-mode", default="synplify", help="Synthesis mode (synplify or yosys).")
def radiant_build_argdict(args): def radiant_build_argdict(args):
return {"synth_mode": args.synth_mode} return {"synth_mode": args.synth_mode}