The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 2:32am
Pages: 1
Send Topic Print
[q] how does verilog-A work in DC sweep? (Read 5951 times)
kidhyun
Junior Member
**
Offline



Posts: 14

[q] how does verilog-A work in DC sweep?
Oct 21st, 2008, 2:08pm
 
Hi,


   I have a question on the behavior of veriloga block in DC analysis. (DC sweep)

   I have a veriloga block which looks like the following.

   module X(in,out);
   .....
   real var1;

   analog begin
             @(initial_step)
                      var1 = 0;

             ....

   My question is if I do DC analysis sweeping 'in' voltage from, let's say, 0 to 1V with the step size of 0.1V, is 'initial_step' block called every time when the simulator runs DC analysis (11 times)? or Is that 'initial_step' called only when 'in' voltage is 0V (only at the start point of DC sweep)?
   (I only ran veriloga block with transient analysis, so I am a little bit confused.)

Thank You

   
Back to top
 
 
View Profile   IP Logged
solidstate
Junior Member
**
Offline



Posts: 16
Munich, Germany
Re: [q] how does verilog-A work in DC sweep?
Reply #1 - Oct 22nd, 2008, 5:48am
 
I know that for e.g. an AC sweep over temperature, it processes the initial_step for every point of the sweep, so that should work for you too. Also, things like this are easily checked by adding something like $strobe("test") to the code that executes at an initial_step.
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: [q] how does verilog-A work in DC sweep?
Reply #2 - Oct 22nd, 2008, 6:49am
 
According to the Verilog-AMS Language Reference Manual, version 2.3,
 @(initial_step)
only fires on the first step of a dc sweep; see Table 5-1 in Section 5.10.2, Global events.

This particular behavior was standardized in LRM 2.2; LRM 2.1 did not have a column for a dc sweep, so the behavior may not have been consistent in different simulators.
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.