Boe,
Thank you for your reply.
Since I have analogLib implementation, I am more interested at the capabilities of Verilog-A, rather than getting it implemented. I always through Verilog-A can do better than standard analogLib structures, but now I am skeptic.
I am attaching the schematics of the analogLib implementation. As you can see, I use several instances of the discrete varistor to perform the binary search.
As for my Verilog-A attempts, I would like to have something like this, which is totally illegal in Verilog-A...
Code: for(i=2;i<=0;i=i+1) begin
res_ctlr[i]=1;
//we would like that res_ctrl_int[i] will propagate outside, changing the resistor value, by that affecting fb_in
res_ctrl[i] = V(fb_in) > V(vref);
//we would like that between each iteration loop, value of res_ctrl will propagate outise, affecting fb_in, all within DC computation !
end