Hello all,
I have to generate two pulses, each with different rise times.
This is my code
Code:`include "disciplines.vams"
module vdriver(out);
parameter real td = 10n;
parameter real tt = 10n;
output out;
voltage out;
real Vout, tend,rst;
analog
begin
@(timer(0))
begin
Vout=0;
end
@(timer(20n))
begin
Vout=5;
end
@(timer(40n))
begin
Vout=3;
end
@(timer(60n))
begin
Vout=5;
end
V(out)<+transition(Vout,0,td,tt); //Rise=Fall=10n
end
endmodule
However, I'd like the second the second pulse to have a different rise/fall time.
If I add a second transition operator however, the entire waveform goes haywire. Any recommendation to solve this?