module V_sine_generator(out); output out; voltage out; parameter real freq = 1K from (0:inf), ampl = 1, offset = 0; analog begin V(out) <+ ampl * sin(`M_TWO_PI * freq * $realtime) + offset; bound_step(0.05/freq); end endmodule