Electrical Wire

Picazzo contains a simple electrical wire template, which can be used to include simple electrical wires in your circuit.

ElectricalWireTemplate

class picazzo3.traces.electrical_wire.ElectricalWireTemplate(*args, **kwargs)
Parameters:

name:

The unique name of the pcell

Views

Layout
Parameters:

layer: __Layer__

process: ProcessLayer

process for the wire

purpose: PatternPurpose

drawing purpose for the wire

view_name: str and ( Alphanumeric string or Contains _$ )

The name of the view

windows: List with type restriction, allowed types: <class ‘ipkiss3.pcell.trace.window.window._TraceWindow’>

List of Trace Windows that know how to draw themselves relative to the shape of the Trace

width: float and number > 0

Width of the electrical trace

pin_shape: Shape

shape to be used for the pins

trace_template_for_ports: _TraceTemplate.Layout

Trace template to be used for the ports. Default = this template

control_shape_layer: __Layer__

layer on which the control shape is drawn

draw_control_shape: ( bool, bool_, bool or int )

draws the control shape on top of the waveguide

Examples

"""
In a lot of simple cases you can just use the default wire template
that is specified in the technology file.
"""
from technologies import silicon_photonics
from ipkiss3.pcell.wiring import ElectricalWire

# This uses the default trace template defined in the tech file
wire = ElectricalWire()
layout = wire.Layout(shape=[(0, 0), (50, 50)])
layout.visualize(annotate=True)
../../../_images/index-1.png
"""
If the default wire template is not sufficient, you can always create
your own template. In this example we show how to create a template with
a non-default width.
"""
from technologies import silicon_photonics
from ipkiss3.pcell.wiring import ElectricalWire
from picazzo3.traces.electrical_wire import ElectricalWireTemplate

etpl = ElectricalWireTemplate()
etpl_layout = etpl.Layout(width=4.0)

# This uses the default trace template defined in the tech file
wire = ElectricalWire(trace_template=etpl)
layout = wire.Layout(shape=[(0, 0), (50, 50)])
layout.visualize(annotate=True)
../../../_images/index-2.png
"""
It's also possible to specify a custom process to draw the wire.
"""
from technologies import silicon_photonics
from ipkiss3.pcell.wiring import ElectricalWire
from picazzo3.traces.electrical_wire import ElectricalWireTemplate
from ipkiss.process import ProcessLayer

etpl = ElectricalWireTemplate()
my_process = ProcessLayer('My Special Process', 'MSP')
etpl_layout = etpl.Layout(process=my_process)

# This uses the default trace template defined in the tech file
wire = ElectricalWire(trace_template=etpl)
layout = wire.Layout(shape=[(0, 0), (50, 50)])
layout.visualize(annotate=True)
../../../_images/index-3.png