The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> RF Simulators >> Could the ideal delay cell from analogLib be used to run PSS simulation?
https://designers-guide.org/forum/YaBB.pl?num=1437062126

Message started by Homer on Jul 16th, 2015, 8:55am

Title: Could the ideal delay cell from analogLib be used to run PSS simulation?
Post by Homer on Jul 16th, 2015, 8:55am

I used the ideal delay cell of analogLib to generate 256 delayed signals as the inputs of the circuit. Now I got convergence problem. It could be caused by other issues. But the is the ideal delay cell OK for PSS simulation? It seems the absdelay in veriloga can't be used for PSS simulation.

Title: Re: Could the ideal delay cell from analogLib be used to run PSS simulation?
Post by Ken Kundert on Jul 16th, 2015, 11:21am

No, you cannot use ideal delay in PSS.

-Ken

Title: Re: Could the ideal delay cell from analogLib be used to run PSS simulation?
Post by Homer on Jul 16th, 2015, 1:22pm


Ken Kundert wrote on Jul 16th, 2015, 11:21am:
No, you cannot use ideal delay in PSS.

-Ken


Thanks Ken。

Title: Re: Could the ideal delay cell from analogLib be used to run PSS simulation?
Post by Homer on Jul 22nd, 2015, 1:31pm

Hi, Ken,

Is timer() function valid for PSS simulation? I used real RC delay to implement the 256 delayed clocks. It's fine but the simulation time is two long.

So I want to implement 256 clock source in veriloga. I used timer() to implement the clock. It's fine for tran. But there no clock for PSS plot. Is timer() valid for PSS? If it's not, any suggestion?

Title: Re: Could the ideal delay cell from analogLib be used to run PSS simulation?
Post by Ken Kundert on Jul 22nd, 2015, 7:53pm

Using timer() is fine. Just be sure to add a period along with the start time. Of course all timer functions should have the same period and it should be commensurate with the PSS period.

-Ken

Title: Re: Could the ideal delay cell from analogLib be used to run PSS simulation?
Post by cmosa on Sep 18th, 2019, 5:36pm

Hi Ken,
I am trying to create a new delay cell that does not have hidden states so that I can use to run PSS shooting method.  Here is my code.

module delay_trans (out, in);

output out; voltage out;
input in1; voltage in;

parameter real vh = 1;                  // output voltage in high state
parameter real vl = 0;                  // output voltage in low state
parameter real vth = (vh + vl)/2;      // threshold voltage at inputs
parameter real td = 0 from [0:inf);      // delay to start of output transition
parameter real tt = 0 from [0:inf);      // transition time of output signals

analog begin
   @(cross(V(in) - vth));
   V(out) <+ transition( V(in), td, tt );
end
endmodule

Please suggest.

Title: Re: Could the ideal delay cell from analogLib be used to run PSS simulation?
Post by Ken Kundert on Sep 18th, 2019, 8:25pm

I don't know why the cross function is there.

The transition function is not designed for continuous signals and it will not give good results. In addition, the delay in a transition function represents hidden state. They can work in SpectreRF if there is no transition in the queue at a period boundary. But that would only be true with discrete events that are isolated from the period boundary.

-Ken

Title: Re: Could the ideal delay cell from analogLib be used to run PSS simulation?
Post by cmosa on Oct 11th, 2019, 4:25pm

Hi Ken,
Thanks for your input.
I found a workaround for running PSS with a "delay" cell.
I ended up using an ahdlLib inverter for which we can specify the delay value. I also specified non-zero tr and tf for the ahdlLib inverter.

With this, PSS  analysis does not give me an error about "distributed element" or "hidden state". However, PSS does not converge !!!

Is it possible that the ideal ahdlLib inverter transfer function is not smooth causing PSS convergence errors?


The log file shows the following. "PSS failed to converge PSS will adjust tstab a little and try again".
finally, "Even after adjusting tstab value, PSS failed to converge"

I checked the transient waveforms at the end of "tstab" time, they look periodic and correct.

Thanks
-CMOSA

Title: Re: Could the ideal delay cell from analogLib be used to run PSS simulation?
Post by Ken Kundert on Oct 11th, 2019, 6:25pm

The only non-hidden state is the state of capacitors and inductors. If you want to implement a delay that does not have issues with hidden state, use capacitors and inductors. Consider designing an all-pass filter.

-Ken

Title: Re: Could the ideal delay cell from analogLib be used to run PSS simulation?
Post by cmosa on Oct 13th, 2019, 5:59am

Hi Ken,
Thanks, Will try CV/I kind of delay element.
Thanks
Marshnil

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