.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_basic/group_ungroup_cells.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_basic_group_ungroup_cells.py: ========================= Grouping ungrouping cells ========================= This example demostrates how to generate a feedthrough wire connection for a given scalar or vector wires. .. image:: ../auto_sample_verilog/nested_hierarchy.svg :align: center **Output1** ungrouped module .. image:: ../../../examples/basic/_ungrouped_design.svg :align: center .. GENERATED FROM PYTHON SOURCE LINES 20-44 .. code-block:: Python import logging import spydrnet as sdn import spydrnet_physical as sdnphy from spydrnet_physical.composers.svg.composer import SVGComposer logger = logging.getLogger("spydrnet_logs") sdn.enable_file_logging(LOG_LEVEL="INFO") netlist = sdnphy.load_netlist_by_name("nested_hierarchy") top = netlist.top_instance.reference # Flatten inst_1_0 inst = next(top.get_instances("inst_1_0")) top.flatten_instance(inst) # Flatten inst_1_1 inst = next(top.get_instances("inst_1_1")) top.flatten_instance(inst) top.create_unconn_wires() composer = SVGComposer() composer.run(netlist, file_out="_ungrouped_design.svg") .. _sphx_glr_download_auto_basic_group_ungroup_cells.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: group_ungroup_cells.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: group_ungroup_cells.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: group_ungroup_cells.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_