The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> AMS Simulators >> Timestep control in NCsim
https://designers-guide.org/forum/YaBB.pl?num=1146599486

Message started by Dave Dobson on May 2nd, 2006, 12:51pm

Title: Timestep control in NCsim
Post by Dave Dobson on May 2nd, 2006, 12:51pm

What governs the timestep selection in ncsim?
In my analog process, I have a clock source with a 100ps period. This clock is then divided by 2 and then divided by 2 again. The digital process generates a serial data stream with a 100ps bit period. This data stream goes through a connect module into the analog block and is processed.

The timescale in the connect module is 1ps/1ps. I have the spectre errpreset=liberal (I have also tried moderate with the same results as described below).

When I simulate with ncsim, I see that when the serial data stream contains no transitions, the analog clocks also have no transitions. This is not what I expected. I expected that the analog process would set the timestep of ncsim and that the maximum timestep would be something less than 100ps, in order to reproduce the highest frequency clock. Instead, it seems that the digital process is dictating the timestep of the analog process. When there are transitions in the serial data stream, then I can see transitions of the correct period for the analog clocks.

I am concerned that the resolution of the analog model will be compromised with the digital process imposing a timestep.

Title: Re: Timestep control in NCsim
Post by jbdavid on Aug 11th, 2006, 2:18am

If there is no event passing from the digital side to the analog side, WHY would you want your analog simulation to slow down?

If you are using a

Code:
reg Da = 0;
always @(posedge Din) Da = 1;
always @(negedge Din) Da = 0;
analog V(Aout) <+ Vdd*transition(Da,td,tr,tf);

you'll force at least two timesteps after each transition,
one at $abstime+td
and the other at
$abstime + td+ tr (rising edge)
$abstime + td+ tf (falling edge)

but if there is no event, there need be no analog time steps..
so your simulation is done faster.

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.