SILICON
Loading...
Searching...
No Matches
CircuitAutoplacer Class Reference

Combines OGDF component layout with libavoid orthogonal wire routing. More...

#include <circuitAutoplacer.hpp>

Static Public Member Functions

static IoOrientationMap boundaryIoOrientations (const core::Circuit &circuit, std::span< GraphicalLogicComponent *const > components)
 Determines boundary I/O sides directly from connected component ports.
static CircuitAutoplacement compute (const core::Circuit &circuit, std::span< GraphicalLogicComponent *const > components, const CircuitAutoplacerOptions &options={})
 Computes component placements and routed wire paths for a circuit.

Detailed Description

Combines OGDF component layout with libavoid orthogonal wire routing.

CircuitAutoplacer is a pure calculation helper. It ranks layered directions from the connected port geometry, compares cardinal and force-directed candidates, positions boundary I/O around connected logic, then routes matched logical connections between their proposed port locations. Each logical net is represented by terminal-to-junction branches on lanes distinct from every other net.

Definition at line 101 of file circuitAutoplacer.hpp.

Member Function Documentation

◆ boundaryIoOrientations()

IoOrientationMap boundaryIoOrientations ( const core::Circuit & circuit,
std::span< GraphicalLogicComponent *const > components )
staticnodiscard

Determines boundary I/O sides directly from connected component ports.

Callers may apply these orientations before layout so component bounds and port geometry are identical on the first and subsequent autoplacement runs.

Definition at line 1393 of file circuitAutoplacer.cpp.

◆ compute()

CircuitAutoplacement compute ( const core::Circuit & circuit,
std::span< GraphicalLogicComponent *const > components,
const CircuitAutoplacerOptions & options = {} )
staticnodiscard

Computes component placements and routed wire paths for a circuit.

The method ignores circuit vertices or edges whose endpoints are not represented in components. It also skips edges when a matching output/input port cannot be found for the edge bus. Returned wire points are scene coordinates after the proposed component moves. Boundary I/O port sides are selected from the proposed topology, components are translated to libavoid shapes, and logical edges are translated to orthogonal connectors. Returned route points are snapped to the DiagramScene grid and compacted to terminals, bends, and junctions. Large designs use geometric terminal spanning trees instead of global Steiner-tree searches for fanout nets.

Parameters
circuitLogical circuit topology to place and route.
componentsGraphical logic components participating in the result.
optionsComponent layout and wire obstacle-clearance settings.
Returns
Component placement map plus routed connections.

Definition at line 1402 of file circuitAutoplacer.cpp.


The documentation for this class was generated from the following files: