Clean up ugly unconditional 'if(1)' conditionals in field logic. #50

This commit is contained in:
Alex Mykyta
2023-07-19 20:49:38 -07:00
parent da8ff4aaeb
commit 211224116e
6 changed files with 38 additions and 18 deletions

View File

@@ -64,7 +64,13 @@ class NextStateConditional:
end
"""
# Assign to True if predicate can never evaluate to false.
# This will be generated as an 'else' clause, or a direct assignment
is_unconditional = False
# Optional comment to emit next to the conditional
comment = ""
def __init__(self, exp:'RegblockExporter'):
self.exp = exp