p = list(p)
if(p[1] == "assign"):
self.printpy(p[4])
- # m.d.comb += [l.eq(r)]
+
+ def assign3(self, left, op, right):
+ return Assignment(left, op, right)
def indent(self, count):
if(indent_debug):
stmts.children.append(Leaf(token.STRING, ")"))
stmts.children.append(self.nl())
- # for a in self.assign:
- #
- #
- #ports = a[8]
- #
-
stmts.children.append(self.indent(2))
stmts.children.append(Leaf(token.STRING, "return m"))
stmts.children.append(self.nl())
# combinatorical assign
def cont_assign_1(self, p):
- # print("#ASSIGN:BROKEN"+str(list(p)))
self.assign += [Assignment(p[1], p[2], p[3])]
+
+ def always_comb(self, p3, p1):
+ print("always_comb")
+ slist = p3[6]
+ for s in slist.statements:
+ self.assign += [s]