resistor :
A resistor circuit element.
The resistor primitive represents a two-terminal resistor. Note that this primitive is a pseudo-module to describe a structural netlist of electrical circuits and not a behavioral model by itself. The XMODEL simulator extracts an event-driven behavioral model at run-time based on the circuit network described by these circuit-level pseudo-modules.
Input/Output Terminals
| Name | I/O | Type | Description |
| pos | input | xreal | positive terminal |
| neg | input | xreal | negative terminal |
Parameters
| Name | Type | Default | Unit | Description |
| R | real | 1.0 | ohms | resistance |
| Cpos | real | 0.0 | farads | pos-to-gnd capacitance |
| Cneg | real | 0.0 | farads | neg-to-gnd capacitance |