- stmts.children.append(Leaf(token.STRING,"m.d.comb += self."))
- stmts.children.append(Leaf(token.STRING,a.left))
- stmts.children.append(Leaf(token.STRING,".eq(self."))
- stmts.children.append(Leaf(token.STRING,a.right))
- stmts.children.append(Leaf(token.STRING,")"))
+ stmts.children.append(Leaf(token.STRING, "m.d.comb += "))
+ if(self.isPort(a.left)):
+ stmts.children.append(Leaf(token.STRING, "self."))
+ stmts.children.append(Leaf(token.STRING, a.left))
+ stmts.children.append(Leaf(token.STRING, ".eq("))
+ if(self.isPort(a.right)):
+ stmts.children.append(Leaf(token.STRING, "self."))
+ stmts.children.append(Leaf(token.STRING, a.right))
+ stmts.children.append(Leaf(token.STRING, ")"))