ashrafsazid
Advanced Member level 4
Hi, I want to reset the output of an Integrator. I used this verilog code for integration purpose:
The problem is when reset is active it indeed goes to gnd=0, but later starts again from that previous position, I want the inegrator will start from gnd again after reset is low.
Please help me.
Code:
analog begin
if (V(reset) > 0) begin
V(out) <+ gnd;
end else if ( V(reset) == 0) begin
V(out) <+ vout;
end
vout = idtmod(V(in), 0);
end
The problem is when reset is active it indeed goes to gnd=0, but later starts again from that previous position, I want the inegrator will start from gnd again after reset is low.
Please help me.
Last edited by a moderator: