Electronic – Generate HSPICE input signal

hspicesignalspice

I want to add this input signal in my hspice code. Here I am doing transient analysis.
How can I do it?

Input signal

Best Answer

Without seeing the schematic and some values it's impossible to tell. You could try to get around using either a behavioural source with int(), round(), floor(), or ceil() -- if a continuous voltage is applied at the input -- or a PWL() source, something like: PWL(1 0 +1m 1 2 1 +1m 3 ...) -- which will not need any input signal. There may be other, more complicated ways, by creating circuits that generate this kind of staircase signal, but since you didn't say anything else, there's not much else to talk about.

Related Topic