Hi,
That's weird - I'm using finesim 2010.08.00 and the code below runs just fine:
Code:`include "disciplines.vams"
`include "constants.vams"
module va_vco2 (out, ctrl, ref);
parameter real amp = 1;
parameter real minfreq = 1M;
parameter real gain = 1.2M;
inout ctrl, out, ref;
voltage ctrl, out, ref;
real phase, freq;
analog begin
freq = minfreq + gain * V(ctrl, ref);
phase = `M_TWO_PI * idtmod(freq, 0, 1);
$bound_step(0.1 / freq);
V(out, ref) <+ 0.5 * amp * (cos(phase) + 1);
end
endmodule
Are you using a recent version? We have no trouble with the Verilog-A support of finesim.
Cheers,
Marq