Home > Community > Forums > Custom IC Design > Regarding Smoothness in transient analysis

## Email

Recipients email * (separate multiple addresses with commas)

Message *

 Send yourself a copy

## Subscribe

Intro copy of the newsletter section here, some intro copy of the newsletter. Instruction of how to subscribe to this newsletter.

First Name *

Last Name *

Email *

Company / Institution *

 Send Yourself A Copy

# Regarding Smoothness in transient analysis

Last post Mon, Sep 23 2013 3:34 AM by Andrew Beckett. 6 replies.
 Started by RFStuff 17 Sep 2013 11:49 PM. Topic has 6 replies and 472 views
• #### Tue, Sep 17 2013 11:49 PM

• RFStuff
• Joined on Tue, Feb 5 2013
• Posts 238
• Points 4,170
Regarding Smoothness in transient analysis
 Dear All,I created a verilogA module.What it basically does is as below:-It is a simple sine wave generator. I stored the sine wave  time & amplitude in a text file for one period of the sine wave.The verilog A code reads the file and generates the sine wave for the entire transient simulation time.But the problem is:-If I am not using the strobeperiod, the curve is NOT smooth at all.But when I use stobeperiod=1ps then it becomes smooth.I was thinking that the  transient simulation will be evaluated at each time point stored in the file.Can anybody please tell why this is happening. Kind Regards,
• Post Points: 20
• #### Wed, Sep 18 2013 8:51 AM

• skillUser
• Joined on Fri, Sep 19 2008
• Austin, TX
• Posts 2,569
• Points 15,600
Re: Regarding Smoothness in transient analysis
 Hi RFStuff,The simulator will only place timesteps that are sufficient to resolve the equations, not necessarily enough that the sine wave looks like a sine wave.  One way to help the simulator take more timesteps is to use the bound_step() function - this should be a little nicer to the simulator (than strobeperiod) as it still has flexibility on the time points, but now they are limited to a maximum time between steps. Work out how many samples/points you wantper cycle and work out the max timestep from there.I hope that this helps.Regards,Lawrence.
• Post Points: 20
• #### Wed, Sep 18 2013 9:01 AM

Re: Regarding Smoothness in transient analysis
 Also, a simple sine wave generator would use the sin() function in the language rather than generating a piece-wise waveform from an external file. It's hard to give a precise answer (Lawrence is correct, of course) without seeing your code - it depends how you're doing it...Regards,Andrew.
• Post Points: 20
• #### Thu, Sep 19 2013 2:19 AM

• RFStuff
• Joined on Tue, Feb 5 2013
• Posts 238
• Points 4,170
Re: Regarding Smoothness in transient analysis
 Thanks a lot Lawrence & Andrew.I have never come across the bound_step() function.  What it is actually ? Is it a OCEAN function . I searched in OCEAN document but couldn't find this one.Can you please explain how it actually work or point me to the doc or link where I can know about this function.
• Post Points: 20
• #### Thu, Sep 19 2013 3:59 AM

Re: Regarding Smoothness in transient analysis
 \$bound_step is a function in the VerilogA language.  It's covered in the language reference manual (both those we ship with the software, plus the official Accellera LRM).
• Post Points: 20
• #### Mon, Sep 23 2013 2:25 AM

• RFStuff
• Joined on Tue, Feb 5 2013
• Posts 238
• Points 4,170
Re: Regarding Smoothness in transient analysis
 I actually read through the document.1:- What I understood is:- bound_step( ) enforces the maximum timestep( that is the upper limit of the time gap between two points) in the verilogA module. But the actual step can still be lesser than the specified bound_step() value depending upon what the simulator needs to solve the equations. Please tell whether I am correct. 2:-Actually, I need to create a Oscillator marcomodel. I want to add noise and other stuff to it. So I stored only one period of the actual ring-oscillator in a file and teh verilogA module uses it to produce the full waveform. Kind Regards,
• Post Points: 20
• #### Mon, Sep 23 2013 3:34 AM

Re: Regarding Smoothness in transient analysis
 Yes, \$bound_step tells the simulator that the next timestep should be no more than the specified delta time from the current timestep. The simulator is free to take shorter timesteps if it needs to though to maintain accuracy.Regards,Andrew.
• Post Points: 5