Changes
|-
|fraction||smoothing %/abs switch||-||False||
|-
|}
==Controlled One-Shot==
[[File:G38.png]]
This is an eight-terminal function generator with a single pulse output. The pulse width is controlled by an input voltage. The functional dependency of the output pulse width on the input voltage is piecewise linear and is defined as a two-dimensional table similar to a piecewise linear (PWL) controlled source. In the "pulse width vs. voltage" curve, the array "cntl_array" defines voltage values in Volts and the array "pw_array" defines the corresponding pulse width values in seconds.
The generation of the output pulse is triggered either on the rising or falling edge of a clock input.
Model Identifier: oneshot
Netlist Format:
A<device_name> %vd(<clk_pin> <clk_ref_pin>) %vd(<cntl_in_pin> <cntl_in_ref_pin>)
%vd(<clear_pin> <clear_ref_pin>)
%vd(<out_pin> <out_ref_pin>) <model_name>
.model <model_name> oneshot {<param1 = value> < param2 = value> ...}
Example:
A1 %vd(1 5) %vd(2 6) %vd(3 7) %vd(4 8) one_shot
.model one_shot oneshot cntl_array = [0.0] pw_array = [1u] rise_time = 1n
Parameters:
{| class="wikitable"
|-
!NAME!!PARAMETER!!UNIT!!DEFAULT!!NOTES
|-
|Clk_trig||clock trigger value||V||0.5||
|-
|Pos_edge_trig||positive/negative edge trigger switch||-||True||
|-
|Cntl_array||control array||V||[0.0]||required
|-
|Pw_array||pulse width array||sec||[1u]||required
|-
|Out_low||output low value||V||0.0||
|-
|Out_high||output high value||V||1.0||
|-
|Delay||output delay from trigger||sec||1.0e-9||
|-
|Rise_time||output rise time||sec||1.0e-9||
|-
|Fall_time||output fall time||sec||1.0e-9||
|-
|}
|-
|out_offset||output offset||V||0.0||
|-
|}
== Finite Sequence Pulse Generator ==
[[File:GL18.png]]
This is a voltage source that generates a pulse train of finite duration oscillating between zero and a user defined maximum voltage level.
Parameters:
{| class="wikitable"
|-
!NAME!!PARAMETER!!UNIT!!DEFAULT!!NOTES
|-
|T||pulse period||sec||1m||required
|-
|w||pulse width||sec||0.5m||required
|-
|n||number of pulses||-||5||
|-
|rise_time||pulse rise time||sec||0||
|-
|fall_time||pulse fall time||sec||0||
|-
|max_val||maximum output voltage level||V||1||
|-|-
|start||start time||sec||0||
|-
|}
== Finite Sequence Random Pulse Generator ==
[[File:GL31.png]]
This is a voltage source that generates a finite sequence of random pulses with a user defined number of random levels. By default, both the pulse amplitude and pulse width are randomized. You have the option to fix either of these [[parameters]].
Parameters:
{| class="wikitable"
|-
!NAME!!PARAMETER!!UNIT!!DEFAULT!!NOTES
|-
|period||period||sec||1||required
|-
|duty_cycle||pulse duty cycle||-||0.5||required
|-
|random_amp||1 for random amplitude, 0 otherwise||-||1||
|-
|random_wid||1 for random pulse width, 0 otherwise||-||1||
|-
|n_rand||number of random levels||-||10||
|-
|rise_time||pulse rise time||sec||0||
|-
|fall_time||pulse fall time||sec||0||
|-
|max_val||maximum output voltage level||V||1||
|-
|n_val||number of random pulses||-||5||
|-
|start||start time||sec||0||
|-
|}
|-
|k||split ratio||-||0.5||
|-
|}
== Impulse Generator ==
[[File:GL19.png]]
This is a voltage source that generates a periodic impulse train with oscillating between zero and a user defined maximum voltage level.
Parameters:
{| class="wikitable"
|-
!NAME!!PARAMETER!!UNIT!!DEFAULT!!NOTES
|-
|T||impulse period||sec||1u||required
|-
|duty_cycle||impulse duty cycle||-||0.01||required
|-
|max_val||maximum output voltage level||V||1||
|-
|delay||delay time||sec||0||
|-
|}