File: floorplan.py

package info (click to toggle)
nextpnr 0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 23,908 kB
  • sloc: cpp: 219,642; python: 21,427; ansic: 10,274; sh: 779; makefile: 493; tcl: 116; vhdl: 44; objc: 42
file content (5 lines) | stat: -rw-r--r-- 208 bytes parent folder | download | duplicates (4)
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")