diff options
author | Pranav Karuvally | 2023-05-07 17:06:33 +0530 |
---|---|---|
committer | GitHub | 2023-05-07 17:06:33 +0530 |
commit | 58072b7f39bc7448a32d0f937d2531e4625f9f75 (patch) | |
tree | 4d513a11d2685a315ad655a23db6ec118829b088 /library/deviceModelLibrary/Switch | |
parent | 2de5fa0604c35a1508bca8bab318724da823633a (diff) | |
parent | b145afdb869564df4131f0b0b472116ca744ef65 (diff) | |
download | eSim-58072b7f39bc7448a32d0f937d2531e4625f9f75.tar.gz eSim-58072b7f39bc7448a32d0f937d2531e4625f9f75.tar.bz2 eSim-58072b7f39bc7448a32d0f937d2531e4625f9f75.zip |
Merge branch 'FOSSEE:master' into master
Diffstat (limited to 'library/deviceModelLibrary/Switch')
-rw-r--r-- | library/deviceModelLibrary/Switch/README.md | 33 | ||||
-rw-r--r-- | library/deviceModelLibrary/Switch/switch1.lib | 3 | ||||
-rw-r--r-- | library/deviceModelLibrary/Switch/switch1.xml | 1 |
3 files changed, 37 insertions, 0 deletions
diff --git a/library/deviceModelLibrary/Switch/README.md b/library/deviceModelLibrary/Switch/README.md new file mode 100644 index 00000000..bfb35788 --- /dev/null +++ b/library/deviceModelLibrary/Switch/README.md @@ -0,0 +1,33 @@ +# Voltage Controlled Switch + +The Voltage Controlled Switch block represents the electrical characteristics of a +switch whose state is controlled by the voltage across the input ports (the controlling +voltage). + + +fig: Voltage control switch + +This block models either a variable-resistance or a short-transition switch. For +a variable-resistance switch, set the Switch model parameter to Smooth transition +between Von and Voff. For a short-transition switch, set Switch model to Abrupt +transition after delay. + +When the controlling voltage is less than the Threshold voltage, VT parameter +value minus the Hysteresis voltage, VH parameter value, the switch is open and has +a resistance equal to the Off resistance, ROFF parameter value. +When the controlling voltage is greater than or less than the Threshold voltage, +VT parameter value by an amount less than or equal to the Hysteresis voltage, VH +parameter value, the voltage is in the crossover region and the state of the switch +remains unchanged + +The schematic to test the proposed voltage controlled switch is shown below. +It is a simple circuit where a pulse source is connected to the switch followed by a +resistor. +When the switch is turned ON, then at the Vout the source voltage can be +obtained, however, the switch model is given some value for Ron meaning the amount +of ron will be offered by the switch when it is turned ON. +Similarly, when it is turned off then it will offer the resistance set in roff. + +``` +.model switch1 sw( vt=0.05 vh=1 ron=1 roff=1e12 ) +``` diff --git a/library/deviceModelLibrary/Switch/switch1.lib b/library/deviceModelLibrary/Switch/switch1.lib new file mode 100644 index 00000000..3736c67f --- /dev/null +++ b/library/deviceModelLibrary/Switch/switch1.lib @@ -0,0 +1,3 @@ +*****************Creation of lib file for switch**************************** + +.model switch1 sw( vt=0.05 vh=1 ron=1 roff=1e12 ) diff --git a/library/deviceModelLibrary/Switch/switch1.xml b/library/deviceModelLibrary/Switch/switch1.xml new file mode 100644 index 00000000..c38fe559 --- /dev/null +++ b/library/deviceModelLibrary/Switch/switch1.xml @@ -0,0 +1 @@ +<library><model_name>sw</model_name><ref_model>switch1</ref_model><param><vt>0.05</vt><vh>1</vh><ron>1</ron><roff>1e12</roff></param></library>
\ No newline at end of file |