gfn.gym.helpers.chip_design.plc_client

PlacementCost client class.

Attributes

DEFAULT_SIF_IMAGE

_PKG_DIR

logger

Classes

PlacementCost

PlacementCost object wrapper.

Functions

_find_singularity()

Returns the path to singularity/apptainer, or None.

_resolve_plc_binary()

Resolves the plc_wrapper_main binary location.

Module Contents

gfn.gym.helpers.chip_design.plc_client.DEFAULT_SIF_IMAGE
class gfn.gym.helpers.chip_design.plc_client.PlacementCost(netlist_file, plc_wrapper_main='', macro_macro_x_spacing=0.0, macro_macro_y_spacing=0.0, singularity_image=None)

PlacementCost object wrapper.

Parameters:
  • netlist_file (Text)

  • plc_wrapper_main (str)

  • macro_macro_x_spacing (float)

  • macro_macro_y_spacing (float)

  • singularity_image (Optional[str])

BUFFER_LEN = 1048576
MAX_RETRY = 256
__getattr__(name)
Return type:

Any

close()
Return type:

None

process
sock
gfn.gym.helpers.chip_design.plc_client._PKG_DIR
gfn.gym.helpers.chip_design.plc_client._find_singularity()

Returns the path to singularity/apptainer, or None.

Return type:

Optional[str]

gfn.gym.helpers.chip_design.plc_client._resolve_plc_binary()

Resolves the plc_wrapper_main binary location.

Resolution order:
  1. PLC_WRAPPER_MAIN environment variable

  2. Native binary in package directory

  3. Apptainer wrapper script in package directory

Return type:

str

gfn.gym.helpers.chip_design.plc_client.logger