Project | Library | Model Name | Kind |
sca_basic_libraries | elec_lin_symbols | sca_de_rswitch | Electrical Module |
Parameters
Name | Type | Default | Description |
ron | double | 0.0 | On resistance in Ohm |
roff | double | sca_util::SCA_INFINITY | Off resistance in Ohmm |
off_state | bool | false | input value for off-state |
Ports
Name | Interface | Type | Description |
p | sca_eln::sca_terminal | positive terminal | |
n | sca_eln::sca_terminal | negative terminal | |
ctrl | sc_core::sc_in | bool | SystemC control input |
Description
Switch controlled by a discrete event SystemC signal
Long Description
P1666.1 p.161 SystemC AMS build in element
7.1.27 sca_eln::sca_de::sca_rswitch / sca_eln::sca_de_rswitch
The class sca_eln::sca_de::sca_rswitch shall implement a primitive module for the ELN MoC that represents a switch, which is controlled by a discrete-event control signal. The primitive shall contribute Equation (7.34) to the equation system:
(7.34) vp,n(t) = ron*ip,n(t) ctrl = !off_state
vp,n(t) = roff*ip,n(t) ctrl = off_state
where ctrl is the discrete-event control signal, roff is the resistance of the switch in ohm under the condition that off_state is equal to the discrete-event control signal, and ron is the resistance of the switch in ohm under the condition that off_state is not equal to the discrete-event control signal. vp,n(t) is the voltage across terminals p and n, and ip,n(t) is the current flowing through the primitive from terminal p to terminal n.
The element supports current tracing. The current is flowing from terminal p to terminal n through the element.