Resistor
- Instance line
Rname …- Model line
.model mname r- Terminals
- R+, R-
- Described in
- Elementary devices
- Source
src/lib/dev/res/res.c
Instance parameters (13)
Input and output (4)
| name | type | description | notes |
|---|---|---|---|
resistance | real | Resistance | principal: the value given without a keyword |
temp | real | Instance operating temperature | listed by show only when all parameters are asked for |
l | real | Length | listed by show only when all parameters are asked for |
w | real | Width | listed by show only when all parameters are asked for |
Input only (1)
| name | type | description | notes |
|---|---|---|---|
sens_resist | flag | flag to request sensitivity WRT resistance |
Output only (8)
| name | type | description | notes |
|---|---|---|---|
i | real | Current | |
p | real | Power | |
sens_dc | real | dc sensitivity | listed by show only when all parameters are asked for |
sens_real | real | dc sensitivity and real part of ac sensitivity | listed by show only when all parameters are asked for |
sens_imag | real | dc sensitivity and imag part of ac sensitivity | listed by show only when all parameters are asked for |
sens_mag | real | ac sensitivity of magnitude | listed by show only when all parameters are asked for |
sens_ph | real | ac sensitivity of phase | listed by show only when all parameters are asked for |
sens_cplx | complex | ac sensitivity | listed by show only when all parameters are asked for |
Model parameters (7)
Input and output (6)
| name | type | description | notes |
|---|---|---|---|
rsh | real | Sheet resistance | |
narrow | real | Narrowing of resistor | |
tc1 | real | First order temp. coefficient | |
tc2 | real | Second order temp. coefficient | |
defw | real | Default device width | |
tnom | real | Parameter measurement temperature | listed by show only when all parameters are asked for |
Input only (1)
| name | type | description | notes |
|---|---|---|---|
r | flag | Device is a resistor model |
Parameters are set on the instance or .model line as keyword=value, and read back with @name[keyword] or the show and showmod commands. See the device reference.