Merge pull request #1359 from trabucayre/fix_lattice_toolchain

build/lattice/{radiant|diamond}: fix typo
This commit is contained in:
enjoy-digital 2022-07-06 07:59:43 +02:00 committed by GitHub
commit 53a141fcde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -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):

View File

@ -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):