piel.integration.hdl21_gdsfactory#

Submodules#

Attributes#

Functions#

generate_raw_netlist_dict_from_module(module)

Generate a raw netlist dictionary from a hdl21 module object.

generate_raw_yaml_from_module(module)

Generate a raw netlist yaml from a hdl21 module object which could be manually edited for specific instances

filter_port(port)

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

find_most_relevant_gds(component_name[, ...])

hdl21_module_to_schematic_editor(module, ...[, ...])

Constructs a SchematicEditor instance from a hdl21 module object.

Package Contents#

ParsedProtoVLSIR#
generate_raw_netlist_dict_from_module(module: piel.types.AnalogueModule)[source]#

Generate a raw netlist dictionary from a hdl21 module object. This just gives us a raw structure of the hdl21 modules, we cannot use this json equivalently to a gdsfactory netlist.

generate_raw_yaml_from_module(module: piel.types.AnalogueModule)[source]#

Generate a raw netlist yaml from a hdl21 module object which could be manually edited for specific instances related to the corresponding SPICE.

filter_port(port)[source]#

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

find_most_relevant_gds(component_name, component_dict=None, custom_mapping=None)[source]#
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)[source]#

Constructs a SchematicEditor instance from a hdl21 module object.

Parameters:
  • module (h.module) – The hdl21 module object.

  • yaml_schematic_file_name (str) – The yaml schematic file name.

  • spice_gds_mapping_method (Callable) – The method to map the spice instance name to the component name.

  • port_filter_method (Callable) – The method to filter the port name.