1
0
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:
jandecaluwe 2015-02-27 08:44:51 +01:00
commit 69c89fa70e
2 changed files with 8 additions and 0 deletions

View File

@ -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:

View File

@ -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: