surface_pins

spydrnet_tmr.transformation.surface_pins.surface_pins(pins, name_prefix='surfaced_pin')

Surfaces the list of given pins to the top module.

Example: when detectors are inserted several levels deep in hierarchy, this function can bring their output pins up to the top to be connected.

Parameters
  • pins – List of pins to surface to the top module.

  • name_prefix – Name for the ports and cables created when surfacing the pins

Returns

list of dictionaries of {pin_to_surface : wire_connected_to_it} entries