Move place function to instance class rather than hierarchy.

This commit is contained in:
Matt Guthaus
2018-08-27 17:25:39 -07:00
parent 8664f7a0b8
commit 6401cbf2a6
28 changed files with 125 additions and 222 deletions
+2 -4
View File
@@ -75,12 +75,10 @@ class dff_inv(design.design):
def place_modules(self):
# Place the DFF
self.place_inst(name="dff_inv_dff",
offset=vector(0,0))
self.dff_inst.place(vector(0,0))
# Place the INV1 to the right
self.place_inst(name="dff_inv_inv1",
offset=vector(self.dff_inst.rx(),0))
self.inv1_inst.place(vector(self.dff_inst.rx(),0))
def add_wires(self):