add dummy attr_translate

This commit is contained in:
Pepijn de Vos 2020-09-29 15:55:07 +02:00
parent dd2b1f21f0
commit eca5a25e27
2 changed files with 16 additions and 1 deletions

View File

@ -59,6 +59,19 @@ def _build_script(name, partnumber, files, options):
f.write(tcl) f.write(tcl)
class GowinToolchain(): class GowinToolchain():
attr_translate = {
"keep": None,
"no_retiming": None,
"async_reg": None,
"mr_ff": None,
"mr_false_path": None,
"ars_ff1": None,
"ars_ff2": None,
"ars_false_path": None,
"no_shreg_extract": None
}
def __init__(self): def __init__(self):
self.options = {} self.options = {}

View File

@ -32,7 +32,9 @@ class GowinPlatform(GenericPlatform):
def get_verilog(self, *args, special_overrides=dict(), **kwargs): def get_verilog(self, *args, special_overrides=dict(), **kwargs):
so = dict(common.gowin_special_overrides) so = dict(common.gowin_special_overrides)
so.update(special_overrides) so.update(special_overrides)
return GenericPlatform.get_verilog(self, *args, special_overrides=so, **kwargs) return GenericPlatform.get_verilog(self, *args, special_overrides=so,
attr_translate=self.toolchain.attr_translate,
**kwargs)
def build(self, *args, **kwargs): def build(self, *args, **kwargs):
return self.toolchain.build(self, *args, **kwargs) return self.toolchain.build(self, *args, **kwargs)