Skip to content

jsl/circuits/Pullups

Package name: jsl/circuits/Pullups

Summary

General Definitions

Function Description
insert-pulldown Construct a pulldown instance from an Instantiable
add-pulldown Add connections for a pulldown to a net or power rail.
insert-pullup Construct a pullup instance from an Instantiable
add-pullup Add connections for a pullup to a net or power rail

Definitions

General Definitions

insert-pulldown

Construct a pulldown instance from an Instantiable

public defn insert-pulldown (sig:JITXObject, rail:JITXObject -- elem-type:Instantiable|Double = ?, inst-name?:String|Symbol = ?, qb?:ResistorQuery = ?)

  • sig: JITXObject - Port or net that we wish to add a pullup to.
  • rail: JITXObject - Port or Net to provide the voltage rail to pull the signal to. If this rail is a power bundle, then the signal is pulled to rail.V-.
  • elem-type: Instantiable|Double - This function will instantiate a component of this type. Alternatively, the user can provide a resistance value, and a resistor of that value will be created using the JITX query API. By default - this function will create a 10k 1% resistor by default.
  • inst-name?: String|Symbol - Optional name of the created instance. If no name is provided, we will use the Ref name of the sig argument. For example, netsw.C.IRQ_N will be converted to IRQ_N-pu.
  • qb?: ResistorQuery - Optional Resistor query builder for the selection of the pullup resistor in the case that elem-type? is a Double. By default, the global query defaults are extended with ResistorQuery(precision = (5 %)).

This function expects to be called from a pcb-module context.

See add-pulldown for more info.

add-pulldown

Add connections for a pulldown to a net or power rail.

public defn add-pulldown (elem:JITXObject, sig:JITXObject, rail:JITXObject)

  • elem: JITXObject - Instance supporting standard two-pin interface
  • sig: JITXObject - Signal that we want to add a pulldown resistor to.
  • rail: JITXObject - Power Rail as either a power bundle, SinglePin or Net. For a power bundle, the rail.V- port will be used.

insert-pullup

Construct a pullup instance from an Instantiable

public defn insert-pullup (sig:JITXObject, rail:JITXObject -- elem-type:Instantiable|Double = ?, inst-name?:String|Symbol = ?, qb?:ResistorQuery = ?)

  • sig: JITXObject - Port or net that we wish to add a pullup to.
  • rail: JITXObject - Port or Net to provide the voltage rail to pull the signal to. If this is a power bundle, then this function will pull to the rail.V+ signal.
  • elem-type: Instantiable|Double - Optional value to control the instance definition. If this value is an Instantiable - we will instantiate it directly. Alternatively, the user can provide a resistance value as a Double, and a resistor of that value will be created using the JITX query API. By default - this function will create a 10k resistor for the pullup.
  • inst-name?: String|Symbol - Name of the created instance. If no name is provided, we will use the Ref of the sig argument. For example, netsw.C.IRQ_N will be converted to IRQ_N-pu.
  • qb?: ResistorQuery - Optional Resistor query builder for the selection of the pullup resistor in the case that elem-type? is a Double. By default, the global query defaults are extended with ResistorQuery(precision = (5 %)).

This function expects to be called from a pcb-module context.

See add-pullup for more info.

add-pullup

Add connections for a pullup to a net or power rail

public defn add-pullup (elem:JITXObject, sig:JITXObject, rail:JITXObject)

  • elem: JITXObject - Instance supporting standard two-pin interface
  • sig: JITXObject - Signal that we want to add a pullup resistor to.
  • rail: JITXObject - Power Rail as either a power bundle, SinglePin or a Net. For a power bundle, the rail.V+ port will be used.

Related Packages

Forwarded by package: jsl/circuits