1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-01-25 19:57:13 +00:00
Files
YosysHQ.nextpnr/ice40/examples/floorplan/floorplan.py
2019-03-22 10:31:54 +00:00

6 lines
208 B
Python

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")