Template class#

class laygo2.object.template.Template(name=None)[source]#

Bases: object

The base class that defines the functions and attributes of the template.

Public Data Attributes:

name

Template name.

Public Methods:

__init__([name])

The constructor function.

__str__()

Return a string representation of this template's information.

summarize()

Return the summary of the template information.

height([params])

int: Return the height of the template.

width([params])

int: Return the width of the template.

size([params])

int: Return the size of the template.

bbox([params])

numpy.ndarray: (Abstract method) the physical bounding box of the template.

pins([params])

dict: (Abstract method) Dictionary storing the pins of the template.

generate([name, shape, pitch, transform, ...])

instance: (Abstract method) Generate an instance from the template.


__init__(name=None)[source]#

The constructor function.

Parameters:

name (str or None, optional.) – The name of this template.

abstract bbox(params=None)[source]#

numpy.ndarray: (Abstract method) the physical bounding box of the template.

abstract generate(name=None, shape=None, pitch=None, transform='R0', netmap=None, params=None)[source]#

instance: (Abstract method) Generate an instance from the template.

height(params=None)[source]#

int: Return the height of the template.

abstract pins(params=None)[source]#

dict: (Abstract method) Dictionary storing the pins of the template.

size(params=None)[source]#

int: Return the size of the template.

summarize()[source]#

Return the summary of the template information.

width(params=None)[source]#

int: Return the width of the template.

_abc_impl = <_abc._abc_data object>#
name = None#

Template name.

Type:

str