piel.integration.hdl21_gdsfactory.sky130
========================================

.. py:module:: piel.integration.hdl21_gdsfactory.sky130


Attributes
----------

.. autoapisummary::

   piel.integration.hdl21_gdsfactory.sky130.custom_mapping_dict


Functions
---------

.. autoapisummary::

   piel.integration.hdl21_gdsfactory.sky130.find_most_relevant_gds
   piel.integration.hdl21_gdsfactory.sky130.filter_port
   piel.integration.hdl21_gdsfactory.sky130.hdl21_module_to_schematic_editor


Module Contents
---------------

.. py:data:: custom_mapping_dict

.. py:function:: find_most_relevant_gds(component_name, component_dict=None, custom_mapping=None)

.. py:function:: filter_port(port)

   Filter the port name to match spice declaration to gds port name, specifically focused on the SKY130nm technology.


.. py:function:: hdl21_module_to_schematic_editor(module: piel.types.AnalogueModule, yaml_schematic_file_name: str, spice_gds_mapping_method: Callable | None = find_most_relevant_gds, port_filter_method: Callable = filter_port)

   Constructs a SchematicEditor instance from a hdl21 module object.

   :param module: The hdl21 module object.
   :type module: h.module
   :param yaml_schematic_file_name: The yaml schematic file name.
   :type yaml_schematic_file_name: str
   :param spice_gds_mapping_method: The method to map the spice instance name to the component name.
   :type spice_gds_mapping_method: Callable
   :param port_filter_method: The method to filter the port name.
   :type port_filter_method: Callable


