Hi there,
What are the possibilities to model a source which gives a rectangular voltage (or position) pulse at a certain time point?
I have tried this here, but this is doesn't give the right result - it always produces large outputs (either below or greater zero).
BTW: Don't hesitate, this is a signal-flow approach!
// position pulse
module pos_pulse (out_pos);
parameter real startval = 10.0;
parameter real endval = 0.0;
parameter real period = 100.0;
parameter real starttime = 1.0;
parameter real endtime = 15.0;
output out_pos;
position out_pos;
analog begin
@(initial_step) begin
Pos(out_pos) <+ slew(startval, 1.0e-9, 1.0e-9); // also tried "transition" here
end
@(timer(endtime)) begin
Pos(out_pos) <+ slew(endval, 1.0e-9, 1.0e-9); // also tried "transition" here
end
end
endmodule
Any ideas?
Chris