.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_basic/wire_feedthrough.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_wire_feedthrough.py: =========================================== Generating feedthrough from single instance =========================================== This example demostrates how to generate a feedthrough wire connection for a given scalar or vector wires. **Initial Design** .. image:: ../auto_sample_verilog/basic_hierarchy.svg :align: center **Output1** ``wire0`` feedthough from ``inst_2_1`` .. hdl-diagram:: ../../../examples/basic/_output_wire.v :type: netlistsvg :align: center :module: top **Output2** ``bus_in`` feedthrough from ``inst_1_0`` .. hdl-diagram:: ../../../examples/basic/_output_bus.v :type: netlistsvg :align: center :module: top .. GENERATED FROM PYTHON SOURCE LINES 30-56 .. code-block:: Python import spydrnet as sdn import spydrnet_physical as sdnphy netlist = sdnphy.load_netlist_by_name("basic_hierarchy") top = netlist.top_instance.reference cable0 = next(top.get_cables("in3")) inst2 = next(top.get_instances("inst_1_0")) top.create_feedthrough(inst2, cable0) top.create_unconn_wires() sdn.compose(netlist, "_output_wire.v", skip_constraints=True) # Reset design netlist = sdnphy.load_netlist_by_name("basic_hierarchy") top = netlist.top_instance.reference bus_in = next(top.get_cables("bus_in")) inst1 = next(top.get_instances("inst_2_0")) cables = top.create_feedthrough(inst1, bus_in) top.create_unconn_wires() sdn.compose(netlist, "_output_bus.v", skip_constraints=True) .. _sphx_glr_download_auto_basic_wire_feedthrough.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: wire_feedthrough.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: wire_feedthrough.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: wire_feedthrough.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_