jsl/symbols/logic/OR¶
Package name: jsl/symbols/logic/OR
Summary¶
Data Types¶
ORGateSymbolParams¶
Constructors¶
Function | Description |
---|---|
ORGateSymbolParams (+ 1) | Constructor for defstruct ORGateSymbolParams |
Functions¶
Function | Description |
---|---|
get-default-or-gate-symbol-params | |
set-default-or-gate-symbol-params | |
build-or-gate-glyphs | Construct the OR Gate Symbol Glyphs |
ORGateSymbol¶
Constructors¶
Function | Description |
---|---|
ORGateSymbol (+ 1) | Constructor for defstruct ORGateSymbol |
General Definitions¶
Variable | Description |
---|---|
OR_IN_REF | |
OR_OUT_REF |
Definitions¶
ORGateSymbolParams¶
public defstruct ORGateSymbolParams <: SymbolParams
filled?: True|False
height: Double
line-width: Double
pad-ref-size: Double
pin-length: Double
-
filled?: True|False
-
height: Double
- Gate Body Height All of the other dimensions of the OR gate are derived from the total height of the body. Typically we select this so that the pins will fit nicely in the input side. -
line-width: Double
-
pad-ref-size: Double
-
pin-length: Double
Constructors¶
ORGateSymbolParams¶
Constructor for defstruct ORGateSymbolParams
public defn ORGateSymbolParams (height:Double, filled?:True|False = ?, line-width:Double = ?, pin-length:Double = ?, pad-ref-size:Double = ?, label-params?:Maybe<SymbolLabelParams> = ?)
ORGateSymbolParams¶
Constructor for defstruct ORGateSymbolParams
public defn ORGateSymbolParams ( -- height:Double = ?, filled?:True|False = ?, line-width:Double = ?, pin-length:Double = ?, pad-ref-size:Double = ?, label-params?:Maybe<SymbolLabelParams> = ?)
Functions¶
get-default-or-gate-symbol-params¶
public defn get-default-or-gate-symbol-params () -> ORGateSymbolParams
- Returns
ORGateSymbolParams
set-default-or-gate-symbol-params¶
public defn set-default-or-gate-symbol-params (v:ORGateSymbolParams) -> False
- Returns
False
build-or-gate-glyphs¶
Construct the OR Gate Symbol Glyphs
public defn build-or-gate-glyphs (node:SymbolNode, num-inputs:Int, pin-pitch:Double, exclusive?:True|False, p:ORGateSymbolParams)
The origin for the OR gate is the base of the output pin. This allows for the output pin to always be on grid. For the inputs, we add an extra line per input so that input pin lands on the grid.
ORGateSymbol¶
public defstruct ORGateSymbol <: SymbolDefn
exclusive?: True|False
in-ref: Ref
inverted?: True|False
num-inputs: Int
open-collector?: Maybe<OpenCollectorType>
out-ref: Ref
params: Maybe<ORGateSymbolParams>
pin-pitch: Double
-
exclusive?: True|False
- Sets the symbol to an Exclusive OR (XOR) style -
in-ref: Ref
- Input Base Reference The symbol will construct individualIndexRef
values from this baseRef
, starting at 1. Example: For a 2-input OR gate, the input pins would bein[1]
andin[2]
. -
inverted?: True|False
- Sets a active low bubble out the output or not This is how to make an NOR gate symbol. -
num-inputs: Int
- Number of OR gate inputs The default is 2 and this value must be greater than 1 -
open-collector?: Maybe<OpenCollectorType>
- Optional open-collector symbol on output pin. Default is None() -
out-ref: Ref
- Output Reference User can override the default for supporting multi-channel chips. -
params: Maybe<ORGateSymbolParams>
-
pin-pitch: Double
- Spacing between input pins. This value is in symbol grid units. The best values are whole numbers or half-numbers (0.5, 1.5, etc).
Constructors¶
ORGateSymbol¶
Constructor for defstruct ORGateSymbol
public defn ORGateSymbol (inverted?:True|False, exclusive?:True|False = ?, open-collector?:Maybe<OpenCollectorType> = ?, num-inputs:Int = ?, pin-pitch:Double = ?, in-ref:Ref = ?, out-ref:Ref = ?, params:Maybe<ORGateSymbolParams> = ?)
ORGateSymbol¶
Constructor for defstruct ORGateSymbol
public defn ORGateSymbol ( -- inverted?:True|False = ?, exclusive?:True|False = ?, open-collector?:Maybe<OpenCollectorType> = ?, num-inputs:Int = ?, pin-pitch:Double = ?, in-ref:Ref = ?, out-ref:Ref = ?, params:Maybe<ORGateSymbolParams> = ?)
General Definitions¶
OR_IN_REF¶
public val OR_IN_REF
OR_OUT_REF¶
public val OR_OUT_REF
Related Packages¶
Forwarded by packages: jsl/symbols/logic/generators, jsl/symbols/generators, jsl/symbols