bag3_analog.layout.res.termination

Module Contents

Classes

Termination

An array of resistors to be used as a termination.

TerminationTop

The base template class.

class bag3_analog.layout.res.termination.Termination(temp_db: bag.layout.template.TemplateDB, params: bag.util.immutable.Param, **kwargs: Any)[source]

Bases: xbase.layout.res.base.ResArrayBase

An array of resistors to be used as a termination. Resistors are connected in parallel in the X direction (horizontally), series in the Y direction (vertically).

Use export_mid to use as a differential termination

Assumption - Top layer is a horizontal layer

TODO: make the series / parallel direction a parameter.

classmethod get_schematic_class() Optional[Type[bag.design.module.Module]][source]
classmethod get_params_info() Mapping[str, str][source]

Returns a dictionary from parameter names to descriptions.

Returns:

param_info – dictionary from parameter names to descriptions.

Return type:

Mapping[str, str]

classmethod get_default_param_values() Mapping[str, Any][source]

Returns a dictionary containing default parameter values.

Override this method to define default parameter values. As good practice, you should avoid defining default values for technology-dependent parameters (such as channel length, transistor width, etc.), but only define default values for technology-independent parameters (such as number of tracks).

Returns:

default_params – dictionary of default parameter values.

Return type:

Mapping[str, Any]

draw_layout() None[source]

Draw the layout of this template.

Override this method to create the layout.

WARNING: you should never call this method yourself.

class bag3_analog.layout.res.termination.TerminationTop(temp_db: bag.layout.template.TemplateDB, params: bag.util.immutable.Param, **kwargs: Any)[source]

Bases: bag.layout.template.TemplateBase

The base template class.

Parameters:
  • temp_db (TemplateDB) – the template database.

  • params (Param) – the parameter values.

  • log_file (str) – the log file path.

  • log_level (LogLevel) – the logging level.

  • **kwargs (Any) –

    dictionary of the following optional parameters:

    gridRoutingGrid

    the routing grid to use for this template.

classmethod get_schematic_class() Optional[Type[bag.design.module.Module]][source]
classmethod get_params_info() Mapping[str, str][source]

Returns a dictionary from parameter names to descriptions.

Returns:

param_info – dictionary from parameter names to descriptions.

Return type:

Mapping[str, str]

draw_layout() None[source]

Draw the layout of this template.

Override this method to create the layout.

WARNING: you should never call this method yourself.

connect_via_steps(warr_xm: bag.layout.routing.base.WireArray, top_layer: int, w_type: str, coords: Sequence[int], mlm_dict: Mapping[int, pybag.enum.MinLenMode] = None) bag.layout.routing.base.WireArray[source]