jsl/circuits/Bypass¶
Package name: jsl/circuits/Bypass
Summary¶
General Definitions¶
Function | Description |
---|---|
bypass | Bypass two ports with an element instance |
insert-bypass (+ 1) | Insert a bypass capacitor of a particular type. |
Definitions¶
General Definitions¶
bypass¶
Bypass two ports with an element instance
public defn bypass (elem:JITXObject, p1:JITXObject, p2:JITXObject)
elem: JITXObject
- component or module instance with either:- Standard Non-Polar Interface -
p[1]/p[2]
- Standard Polarized Interface -
a/c
This function is generator and is expected to run in
a pcb-module
context.
It is common to bypass voltage rails with capacitors. Typically, these capacitors need to be placed close to the rail in question.
The bypass
function is a general purpose tool for creating
the net and short-trace statements for bypassing.
insert-bypass¶
Insert a bypass capacitor of a particular type.
public defn insert-bypass (pos:JITXObject, neg:JITXObject -- elem-type:Instantiable|Double = ?, inst-name:String|Symbol = ?, qb:CapacitorQuery = ?)
pos: JITXObject
- Voltage Rail Positive Port - This should generally be a component port because otherwise theshort-trace
application will fail.neg: JITXObject
- Voltage Rail Negative Port - This should generally be a component port, but can also be a ground net or module port.elem-type: Instantiable|Double
- Instantiable or capacitance value as aDouble
. If anInstantiable
, it should confirm to standard two pin interface definitions. As aDouble
, the JITX query API is used to source a capacitor of this many farads. By default, this value is set to 100nF. The global default query parameters can be used to control the other aspects of the query.inst-name: String|Symbol
- Optional name for the capacitor instance to be created. If none is given, then the Ref name of thepos
signal will be used to create an instance name in the form<NAME>-byp
.qb: CapacitorQuery
- Optional capacitor query builder. This builder will extend the global defaults with any customization the user desires. The default value isCapacitorQuery()
with no additional parameters.
This function expects to be called from within a pcb-module
context.
insert-bypass¶
Insert a bypass capacitor across a power
bundle port.
public defn insert-bypass (rail:JITXObject -- elem-type:Instantiable|Double = ?, inst-name:String|Symbol = ?, qb:CapacitorQuery = ?)
rail: JITXObject
- Power Bundle port for the rail to bypass. This port will likely need to use thesignal-ends
feature if not a directpcb-component
pad.elem-type: Instantiable|Double
- Instantiable or capacitance value as aDouble
. If anInstantiable
, it should confirm to standard two pin interface definitions. As aDouble
, the JITX query API is used to source a capacitor of this many farads. By default, this value is set to 100nF. The global default query parameters can be used to control the other aspects of the query.inst-name: String|Symbol
- Optional name for the capacitor instance to be created. If none is given, then the Ref name of thepos
signal will be used to create an instance name in the form<NAME>-byp
.qb: CapacitorQuery
- Optional capacitor query builder. This builder will extend the global defaults with any customization the user desires. The default value isCapacitorQuery()
with no additional parameters.
This function expects to be called from within a pcb-module
context.
Related Packages¶
Forwarded by package: jsl/circuits