3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-15 09:48:43 +00:00

sby: core: setup: added the selection inversion and assertion removal to the script generation

This commit is contained in:
Aki Van Ness 2022-10-04 06:10:46 -04:00
parent eb90f08086
commit 19061bc422
No known key found for this signature in database
GPG key ID: C629E8EC06327BEE

View file

@ -548,6 +548,7 @@ class SbyConfig:
def gen_setup_script(self):
script = '# Autogenerated by SBY stage setup\n'
script += 'select *'
def cutpoint(v):
return f"cutpoint {v}"
@ -577,8 +578,9 @@ class SbyConfig:
'invoke': invoke(v)
}.get(k, '') + '\n'
# TODO: Invert selection, then `chformal -assert -remove`
script += 'select -set _setup %\n'
script += 'select @_setup %n\n'
script += 'chformal -assert -remove %\n'
return script