mirror of
https://github.com/myhdl/myhdl.git
synced 2024-12-14 07:44:38 +08:00
Merge pull request #11 from jck/master
conv: allow modifying bits of signals inside lists
This commit is contained in:
commit
69c89fa70e
@ -776,6 +776,10 @@ class _ConvertVisitor(ast.NodeVisitor, _ConversionMixin):
|
||||
node.obj = self.getObj(node.value)
|
||||
|
||||
def getAttr(self, node):
|
||||
if isinstance(node.value, ast.Subscript):
|
||||
self.setAttr(node)
|
||||
return
|
||||
|
||||
assert isinstance(node.value, ast.Name), node.value
|
||||
n = node.value.id
|
||||
if n in self.tree.symdict:
|
||||
|
@ -603,6 +603,10 @@ class _ConvertVisitor(ast.NodeVisitor, _ConversionMixin):
|
||||
self.visit(node.value)
|
||||
|
||||
def getAttr(self, node):
|
||||
if isinstance(node.value, ast.Subscript):
|
||||
self.setAttr(node)
|
||||
return
|
||||
|
||||
assert isinstance(node.value, ast.Name), node.value
|
||||
n = node.value.id
|
||||
if n in self.tree.symdict:
|
||||
|
Loading…
x
Reference in New Issue
Block a user