aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/examples/floorplan/floorplan.py
blob: 85c53ccd835a148f4460850d39d20c766ccae4f6 (plain)
1
2
3
4
5
ctx.createRectangularRegion("osc", 1, 1, 1, 4)
for cell, cellinfo in ctx.cells:
    if "ringosc" in cellinfo.attrs:
        print("Floorplanned cell %s" % cell)
        ctx.constrainCellToRegion(cell, "osc")