部品
シンボル
*.sym.toml ファイル: ピン、グラフィック、生成されたボックス本体、マルチユニットシンボル、信号チェック用のロジックレベル。
name = "LM358"
reference = "U" # designator prefix
value = "LM358" # default: name
description = "Dual op amp"
datasheet = "https://..."
keywords = ["opamp", "dual"]
footprint = "SOIC-8_3.9x4.9mm_P1.27mm"
footprint_filters = ["SOIC*3.9x4.9mm*"]
pin_names = "inside" # inside | outside | hidden
# pin_name_offset = 0.508
# hide_pin_numbers = true
# power = true # a power flag symbol like GND
[[graphics]]
kind = "polygon"
points = [[-5.08, -5.08], [5.08, 0], [-5.08, 5.08]]
fill = "background" # none | solid | background
unit = 1 # 0 or absent: drawn in every unit
[[pins]]
number = "3"
name = "+"
type = "input"
at = [-7.62, -2.54] # the connection point, where wires land
side = "left" # left | right | top | bottom of the body
length = 2.54 # default 2.54
unit = 1
# shape = "inverted" # line | inverted | clock | inverted_clock | input_low | clock_low | output_low | edge_clock_high | non_logic
# hidden = truesideはピンが本体のどの辺から突き出ているかを指定します。leftのピンはatから右へ本体に向かって伸びます。接続点は1.27 mmグリッド(2.54 mmグリッドが望ましい)に配置します。
ピンタイプ:input、output、bidirectional、tri_state、passive、free、unspecified、power_in、power_out、open_collector、open_emitter、no_connect。
名前はオーバーバーに~{...}を使用します:~{RESET}。
生成された本体
ボックスシンボルでは、辺ごとにピンを列挙し、agenteeがグリッド上に配置して本体のサイズを決定します。各エントリはピン、または{ gap = N }でN個の空スロットを残します。
name = "STM32F103C8"
reference = "U"
[[bodies]]
unit = 1 # optional, one [[bodies]] per unit
# width = 20.32 # minimum body width
# pin_length = 2.54
left = [
{ number = "7", name = "NRST", type = "input" },
{ gap = 1 },
{ number = "10", name = "PA0", type = "bidirectional" },
]
right = [ { number = "30", name = "PA9", type = "bidirectional" } ]
top = [ { number = "1", name = "VBAT", type = "power_in" } ]
bottom = [ { number = "8", name = "VSS", type = "power_in" } ]本体と手動配置の[[pins]] / [[graphics]]を混在できます。
マルチユニットシンボル:ピンとグラフィックにunitを指定します。同じピン番号が複数のユニットに現れても、名前が同じ場合(共有ピン)のみ許可されます。
ロジックレベル
シンボルは、回路図の信号レベルチェックのために、ピンの入力しきい値を指定できます。[levels]はすべてのinputピンとbidirectionalピンに適用されます。ピン自身のlevelsテーブルはフィールドごとに上書きし、任意のピンタイプをチェック対象にします。
[levels]
supply = "VDD" # pin name or number whose rail the % levels scale with
vih = "75%" # of the supply; or volts, "2.0V"
vil = "25%"
min = "-0.3V" # absolute limits, sums allowed: "100%+0.3V"
max = "100%+0.3V"
leakage = "50nA" # input leakage, either way
# pull_up = "45k" # a fixed internal pull to the supply
# pull_down = "45k"
[[pins]]
number = "12"
name = "NRST"
type = "input"
at = [-7.62, 0.0]
side = "left"
levels = { vih = "70%", pull_up = "45k" }レベルを持つピンのみがチェックされます。レベルを持たないシンボルについては何も仮定されません。