Skip to content

Commit

Permalink
always decorator argument type check
Browse files Browse the repository at this point in the history
  • Loading branch information
jandecaluwe committed Apr 24, 2016
1 parent b2c93b0 commit 8e1ac06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions myhdl/conversion/_analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,9 @@ class _AnalyzeAlwaysDecoVisitor(_AnalyzeBlockVisitor):
def __init__(self, tree, senslist):
_AnalyzeBlockVisitor.__init__(self, tree)
self.tree.senslist = senslist
for arg in senslist:
if isinstance(arg, delay):
self.raiseError(_error.NotSupported, "delay argument in @always decorator")

def visit_FunctionDef(self, node):
self.refStack.push()
Expand Down

0 comments on commit 8e1ac06

Please sign in to comment.