mirror of
https://github.com/myhdl/myhdl.git
synced 2025-01-24 21:52:56 +08:00
Support for list of signals in sensitivity lists of general @instance blocks
This commit is contained in:
parent
ebb99727b6
commit
4a8436745c
@ -1004,14 +1004,18 @@ class _ConvertVisitor(_ConversionMixin):
|
||||
|
||||
def visitYield(self, node, *args):
|
||||
yieldObj = self.getObj(node.value)
|
||||
assert node.senslist
|
||||
senslist = node.senslist
|
||||
if isinstance(yieldObj, delay):
|
||||
self.write("# ")
|
||||
else:
|
||||
self.write("@ (")
|
||||
self.visit(node.value, _context.YIELD)
|
||||
if isinstance(yieldObj, delay):
|
||||
self.visit(node.value, _context.YIELD)
|
||||
self.write(";")
|
||||
else:
|
||||
self.write("@ (")
|
||||
for e in senslist[:-1]:
|
||||
self.write(e._toVerilog())
|
||||
self.write(', ')
|
||||
self.write(senslist[-1]._toVerilog())
|
||||
self.write(");")
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user