Skip to main content

unit_wires

Function unit_wires 

Source
pub fn unit_wires(
    graph: &Graph,
    under: &str,
    units: &[Unit],
    anchors: &[Anchor],
) -> Result<(Vec<Unit>, Vec<Wire>), PlaceError>
Expand description

The units a floorplan places and its wires, from a module’s graph: each of units (its instances paths under the module graph was read from, its region’s name, what its instances need together) placed under under (the module’s own path in the build); a wire between two units of the bits the graph counts between an instance of the one and an instance of the other (bits between two instances of one unit stay inside its region); and from a unit to an anchor (matched by an instance’s full path) of the bits that instance shares with the module’s ports, the way out to the anchor. Refused by name: an instance the module lacks, a unit of none, an instance two units hold, and two units of one region name.