cbadc.circuit.components.comparator.DAC_Bridge

class cbadc.circuit.components.comparator.DAC_Bridge(instance_name: str, model_name: str, out_low: float, out_high: float, out_undef: float, input_load: float = 1e-12, t_rise: float = 1e-09, t_fall: float = 1e-09, comments: List[str] = [])[source]

Bases: CircuitElement

Methods

__init__(instance_name, model_name, out_low, ...)

add_terminal(terminal[, index])

Add a terminal to the component

add_terminals(terminals)

Add multiple terminals to the component

get_ngspice(connections)

Get the ngspice call for the component

get_spectre(connections)

Get the spectre call for the component

get_terminals()

Get the terminals of the component

Attributes

add_terminal(terminal: Terminal, index: int = -1)

Add a terminal to the component

Parameters
  • terminal (Terminal) – The terminal to add

  • index (int, optional) – The index to add the terminal at, by default -1, i.e., at the end

add_terminals(terminals: List[Terminal])

Add multiple terminals to the component

Parameters

terminals (List[Terminal]) – The terminals to add

get_ngspice(connections: Dict[Terminal, Port]) str[source]

Get the ngspice call for the component

get_spectre(connections: Dict[Terminal, Port])

Get the spectre call for the component

get_terminals() List[Terminal]

Get the terminals of the component