-
Notifications
You must be signed in to change notification settings - Fork 101
/
Copy pathanalog.js
2 lines (2 loc) · 10.5 KB
/
analog.js
1
2
jade_defs.analog = function (jade) { jade.model.load_json(
{"/analog/v_probe": {"properties": {"color": {"edit": "yes", "label": "Plot color", "type": "menu", "value": "red", "choices": ["red", "green", "blue", "cyan", "magenta", "yellow", "black", "x-axis"]}, "tool_tip": {"edit": "no", "type": "string", "value": "Voltage probe", "label": "Tool tip"}, "readonly": {"edit": "no", "type": "string", "value": "true", "label": "Read only?"}, "confidential": {"edit": "no", "type": "string", "value": "true", "label": "Confidential?"}, "offset": {"edit": "yes", "type": "number", "value": "0", "label": "Plot offset"}}, "icon": [["terminal", [0, 0, 0], {"line": "no", "name": "probe"}], ["line", [0, 0, 0, 4, -4]], ["line", [2, -6, 0, 4, 4]], ["line", [2, -6, 0, 15, -15]], ["line", [6, -2, 0, 15, -15]], ["line", [17, -21, 0, 4, 4]], ["arc", [19, -19, 0, 11, -2, 5, -3]]]}, "/analog/i_probe": {"properties": {"color": {"edit": "yes", "label": "Plot color", "type": "menu", "value": "red", "choices": ["red", "green", "blue", "cyan", "magenta", "yellow", "black"]}, "tool_tip": {"edit": "no", "label": "Tool tip", "type": "string", "value": "Current probe", "choices": [""]}, "readonly": {"edit": "no", "type": "string", "value": "true", "label": "Read only?"}, "confidential": {"edit": "no", "type": "string", "value": "true", "label": "Confidential?"}, "offset": {"edit": "yes", "label": "Offset", "type": "number", "value": "0", "choices": [""]}}, "icon": [["terminal", [0, 0, 0], {"name": "nplus"}], ["terminal", [16, 0, 4], {"name": "nminus"}], ["line", [10, 0, 0, -4, -4]], ["line", [10, 0, 6, -4, -4]]]}, "/analog/inductor": {"properties": {"tool_tip": {"edit": "no", "label": "Tool tip", "type": "string", "value": "Inductor", "choices": [""]}, "readonly": {"edit": "no", "type": "string", "value": "true", "label": "Read only?"}, "name": {"edit": "yes", "label": "Name", "type": "name", "value": "", "choices": [""]}, "confidential": {"edit": "no", "type": "string", "value": "true", "label": "Confidential?"}, "l": {"edit": "yes", "label": "Inductance (H)", "type": "number", "value": "1", "choices": [""]}}, "icon": [["terminal", [0, 0, 7], {"name": "n1"}], ["terminal", [0, 48, 3], {"name": "n2"}], ["line", [0, 14, 0, 0, -6]], ["line", [0, 34, 0, 0, 6]], ["arc", [-3, 28, 0, 3, 6, 3, -2]], ["arc", [0, 14, 0, -3, 6, 0, 8]], ["property", [8, 24, 0], {"format": "{l}H"}], ["property", [-6, 24, 0], {"align": "center-right", "format": "{name}"}], ["arc", [-3, 20, 0, 0, 8, 7, 2]]]}, "/analog/pfet": {"properties": {"tool_tip": {"edit": "no", "label": "Tool tip", "type": "string", "value": "P-Channel mosfet", "choices": [""]}, "name": {"edit": "yes", "label": "Name", "type": "name", "value": "", "choices": [""]}, "confidential": {"edit": "no", "type": "string", "value": "true", "label": "Confidential?"}, "L": {"edit": "yes", "label": "Scaled length", "type": "number", "value": "1", "choices": [""]}, "readonly": {"edit": "no", "type": "string", "value": "true", "label": "Read only?"}, "W": {"edit": "yes", "label": "Scaled width", "type": "number", "value": "2", "choices": [""]}}, "icon": [["terminal", [0, 0, 1], {"name": "D"}], ["terminal", [0, 32, 3], {"name": "S"}], ["terminal", [-24, 16, 0], {"name": "G"}], ["line", [0, 8, 0, -8, 0]], ["line", [-8, 8, 0, 0, 16]], ["line", [-8, 24, 0, 8, 0]], ["line", [-11, 8, 0, 0, 16]], ["property", [0, 16, 0], {"format": "{W}/{L}"}], ["circle", [-14, 16, 0, 2]]]}, "/analog/resistor": {"properties": {"tool_tip": {"edit": "no", "type": "string", "value": "Resistor", "label": "Tool tip"}, "readonly": {"edit": "no", "type": "string", "value": "true", "label": "Read only?"}, "r": {"edit": "yes", "type": "number", "value": "1", "label": "Resistance (\u03a9)"}, "name": {"edit": "yes", "type": "name", "value": "", "label": "Name"}, "confidential": {"edit": "no", "type": "string", "value": "true", "label": "Confidential?"}}, "icon": [["terminal", [0, 0, 1], {"name": "n1"}], ["terminal", [0, 48, 3], {"name": "n2"}], ["line", [0, 8, 0, 0, 4]], ["line", [0, 12, 0, 4, 2]], ["line", [4, 14, 0, -8, 4]], ["line", [-4, 18, 0, 8, 4]], ["line", [4, 22, 0, -8, 4]], ["line", [-4, 26, 0, 8, 4]], ["line", [4, 30, 0, -8, 4]], ["line", [-4, 34, 0, 4, 2]], ["line", [0, 36, 0, 0, 4]], ["property", [5, 24, 0], {"format": "{r}\u03a9"}], ["property", [-5, 24, 0], {"align": "center-right", "format": "{name}"}]]}, "/analog/v_source": {"properties": {"tool_tip": {"edit": "no", "type": "string", "value": "Voltage source", "label": "Tool tip"}, "readonly": {"edit": "no", "type": "string", "value": "true", "label": "Read only?"}, "confidential": {"edit": "no", "type": "string", "value": "true", "label": "Confidential?"}, "name": {"edit": "yes", "type": "name", "value": "", "label": "Name"}, "value": {"edit": "yes", "type": "string", "value": "dc(1)", "label": "Value"}}, "icon": [["terminal", [0, 0, 1], {"name": "nplus"}], ["terminal", [0, 48, 3], {"name": "nminus"}], ["line", [0, 8, 0, 0, 4]], ["circle", [0, 24, 0, 12, 0]], ["line", [0, 36, 0, 0, 4]], ["line", [0, 15, 0, 0, 6]], ["line", [-3, 18, 0, 6, 0]], ["line", [-3, 30, 0, 6, 0]], ["property", [14, 24, 0], {"format": "{value}"}], ["property", [-14, 24, 0], {"align": "center-right", "format": "{name}"}]]}, "/analog/nfet": {"properties": {"tool_tip": {"edit": "no", "label": "Tool tip", "type": "string", "value": "N-Channel mosfet", "choices": [""]}, "name": {"edit": "yes", "label": "Name", "type": "name", "value": "", "choices": [""]}, "confidential": {"edit": "no", "type": "string", "value": "true", "label": "Confidential?"}, "L": {"edit": "yes", "label": "Scaled length", "type": "number", "value": "1", "choices": [""]}, "readonly": {"edit": "no", "type": "string", "value": "true", "label": "Read only?"}, "W": {"edit": "yes", "label": "Scaled width", "type": "number", "value": "2", "choices": [""]}}, "icon": [["terminal", [0, 0, 1], {"name": "D"}], ["terminal", [0, 32, 3], {"name": "S"}], ["terminal", [-24, 16, 0], {"name": "G"}], ["line", [0, 8, 0, -8, 0]], ["line", [-8, 8, 0, 0, 16]], ["line", [-8, 24, 0, 8, 0]], ["line", [-11, 8, 0, 0, 16]], ["property", [0, 16, 0], {"format": "{W}/{L}"}], ["line", [-16, 16, 0, 5, 0]]]}, "/analog/diode": {"properties": {"tool_tip": {"edit": "no", "label": "Tool tip", "type": "string", "value": "Diode", "choices": [""]}, "name": {"edit": "yes", "label": "Name", "type": "name", "value": "", "choices": [""]}, "confidential": {"edit": "no", "type": "string", "value": "true", "label": "Confidential?"}, "area": {"edit": "yes", "label": "Area", "type": "number", "value": "1", "choices": [""]}, "readonly": {"edit": "no", "type": "string", "value": "true", "label": "Read only?"}, "type": {"edit": "yes", "label": "Type", "type": "menu", "value": "normal", "choices": ["normal", "ideal"]}}, "icon": [["terminal", [0, 0, 1], {"name": "anode"}], ["terminal", [0, 48, 5], {"name": "cathode"}], ["line", [0, 8, 1, 8, 0]], ["line", [-8, 16, 0, 16, 0]], ["line", [8, 16, 0, -8, 16]], ["line", [0, 32, 0, -8, -16]], ["line", [-8, 32, 0, 16, 0]], ["line", [0, 40, 0, 0, -8]], ["property", [8, 24, 0], {"format": "{area}"}], ["property", [-8, 24, 0], {"align": "center-right", "format": "{name}"}]]}, "/analog/opamp": {"properties": {"A": {"edit": "yes", "label": "Gain", "type": "number", "value": "30000", "choices": [""]}, "tool_tip": {"edit": "no", "label": "Tool tip", "type": "string", "value": "Op Amp", "choices": [""]}, "readonly": {"edit": "no", "type": "string", "value": "true", "label": "Read only?"}, "name": {"edit": "yes", "label": "Name", "type": "name", "value": "", "choices": [""]}, "confidential": {"edit": "no", "type": "string", "value": "true", "label": "Confidential?"}}, "icon": [["terminal", [0, 0, 0], {"name": "nplus"}], ["terminal", [0, 16, 0], {"name": "nminus"}], ["terminal", [48, 8, 4], {"name": "output"}], ["terminal", [24, 24, 3], {"name": "gnd"}], ["line", [8, -8, 0, 0, 32]], ["line", [8, 24, 0, 32, -16]], ["line", [40, 8, 0, -32, -16]], ["line", [10, 0, 0, 6, 0]], ["line", [13, -3, 0, 0, 6]], ["line", [10, 16, 0, 6, 0]], ["text", [27, 16, 0], {"text": "gnd", "align": "top-left", "font": "5pt sans-serif"}], ["property", [27, 0, 0], {"align": "bottom-left", "format": "{name}"}]]}, "/analog/capacitor": {"properties": {"tool_tip": {"edit": "no", "type": "string", "value": "Capacitor", "label": "Tool tip"}, "readonly": {"edit": "no", "type": "string", "value": "true", "label": "Read only?"}, "c": {"edit": "yes", "type": "number", "value": "1", "label": "Capacitance (F)"}, "confidential": {"edit": "no", "type": "string", "value": "true", "label": "Confidential?"}, "name": {"edit": "yes", "type": "name", "value": "", "label": "Name"}}, "icon": [["terminal", [0, 0, 1], {"name": "n1"}], ["terminal", [0, 48, 3], {"name": "n2"}], ["line", [0, 8, 0, 0, 14]], ["line", [-8, 22, 0, 16, 0]], ["line", [-8, 26, 0, 16, 0]], ["line", [0, 26, 0, 0, 14]], ["property", [9, 24, 0], {"format": "{c}F"}], ["property", [-9, 24, 0], {"align": "center-right", "format": "{name}"}]]}, "/analog/i_source": {"properties": {"tool_tip": {"edit": "no", "label": "Tool tip", "type": "string", "value": "Current source", "choices": [""]}, "readonly": {"edit": "no", "type": "string", "value": "true", "label": "Read only?"}, "confidential": {"edit": "no", "type": "string", "value": "true", "label": "Confidential?"}, "name": {"edit": "yes", "label": "Name", "type": "name", "value": "", "choices": [""]}, "value": {"edit": "yes", "label": "Value", "type": "string", "value": "dc(1)", "choices": [""]}}, "icon": [["terminal", [0, 0, 1], {"name": "nplus"}], ["terminal", [0, 48, 3], {"name": "nminus"}], ["line", [0, 8, 0, 0, 4]], ["circle", [0, 24, 0, 12, 0]], ["line", [0, 36, 0, 0, 4]], ["property", [14, 24, 0], {"format": "{value}"}], ["property", [-14, 24, 0], {"align": "center-right", "format": "{name}"}], ["line", [0, 16, 0, 0, 16]], ["line", [0, 32, 0, 3, -6]], ["line", [0, 32, 0, -3, -6]]]}, "/analog/initial_voltage": {"properties": {"tool_tip": {"edit": "yes", "label": "Tool tip", "type": "string", "value": "Initial voltage", "choices": [""]}, "readonly": {"edit": "no", "type": "string", "value": "true", "label": "Read only?"}, "name": {"edit": "yes", "label": "Name", "type": "name", "value": "", "choices": [""]}, "confidential": {"edit": "no", "type": "string", "value": "true", "label": "Confidential?"}, "IV": {"edit": "yes", "label": "Initial voltage", "type": "number", "value": "0", "choices": [""]}}, "icon": [["terminal", [0, 0, 3], {"name": "node"}], ["property", [0, -16, 0], {"align": "center", "format": "IV={IV}"}], ["line", [-16, -8, 0, 32, 0]], ["line", [16, -8, 0, 0, -16]], ["line", [16, -24, 0, -32, 0]], ["line", [-16, -24, 0, 0, 16]], ["property", [0, -26, 0], {"align": "bottom-center", "format": "{name}"}]]}},true);};