snapToGrid
layout snapToGrid boolean { t | nil }
graphic snapToGrid boolean { t | nil }
Description
Snaps the top-level and soft block pins to a grid. It also snaps the place and route (PR) boundary of the top-level and soft block instances to a grid. The snapping of pins and PR boundary is dependent on the block type, and the snapping works when the display level is greater than zero.
If the block is an analog block, the PR boundary and pin edges are snapped to the manufacturing grid. For a digital block, the PR boundary is snapped to the placement grid and the pin centers are snapped to the routing grid. The snapping is supported for both virtual and non-virtual pins. Pins with placement status unplaced, fixed, locked, or unknown are not snapped even if they are touching the boundary.
GUI Equivalent
Examples
envGetVal("layout" "snapToGrid")
envSetVal("layout" "snapToGrid" 'boolean t)
envGetVal("graphic" "snapToGrid")
envSetVal("graphic" "snapToGrid" 'boolean t)
Related Topics
Return to top