Skip to content

Commit

Permalink
repair: ignore initial statements and parameter arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiwi committed Jan 6, 2024
1 parent 75bd257 commit f0725e4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rtlrepair/repair.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ def visit_Parameter(self, node: vast.Parameter):
# by default we ignore any parameter declarations
return node

def visit_ParamArg(self, node: vast.ParamArg):
# by default we ignore any parameter assignments since they need to be constant
return node

def visit_Integer(self, node: vast.Integer):
# by default we ignore any integer declarations
return node
Expand All @@ -120,6 +124,10 @@ def visit_Portlist(self, node: vast.Portlist):
# by default we ignore the portlist since we cannot dynamically change ports
return node

def visit_Initial(self, node: vast.Initial):
# by default we ignore the initial statements since starting values of registers cannot change at circuit run time
return node

def visit_ForStatement(self, node: vast.ForStatement):
# by default we ignore the condition, pre and post of the for statement since it cannot dynamically be changed
node.statement = self.visit(node.statement)
Expand Down

0 comments on commit f0725e4

Please sign in to comment.