k_jam2662
Newbie level 4
I want to model an impulse current source in hspice so that the startup time is determined as follows:
If dt<0, current source will be on.
Where dt=th-tf,
th:is the time has been passed from beginning of the simulation ,
tf=1/v(3),
Where v(3) is voltage of the node named 3,
This if condition must be checked for every step time of the transient simulation.
Whenever this condition is met, th must be reset to zero.
Can this behavior be modeled in hspice?
How the hspice code can be written?
If dt<0, current source will be on.
Where dt=th-tf,
th:is the time has been passed from beginning of the simulation ,
tf=1/v(3),
Where v(3) is voltage of the node named 3,
This if condition must be checked for every step time of the transient simulation.
Whenever this condition is met, th must be reset to zero.
Can this behavior be modeled in hspice?
How the hspice code can be written?