File: floorplan.py

package info (click to toggle)
nextpnr 0.10-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 40,060 kB
  • sloc: cpp: 176,747; python: 18,011; ansic: 10,558; pascal: 1,367; sh: 383; makefile: 223; vhdl: 44; objc: 42; tcl: 41
file content (5 lines) | stat: -rw-r--r-- 208 bytes parent folder | download | duplicates (7)
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")