• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. Solving a differential equation using VerilogA Model

Stats

  • Locked Locked
  • Replies 0
  • Subscribers 125
  • Views 14069
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Solving a differential equation using VerilogA Model

RFStuff
RFStuff over 12 years ago

Dear All,

I need to solve a differntial eqaition in my VerilogA marco-model

The eqaution I want to solve is:-

 

 ddt(V(alpha)) = Vx * V(in)

V(in) is the input signal ( as a function of time 't')  to the model.

Vx is read from a "table_model" at (t + V(alpha) i.e (  $(abstime) + V(alpha)  )

To solve this  I did as below:-

 

 // define branches
branch (alpha) alpha1;
branch (alpha) alpha2;

I(alpha1) <+ -Vx * V(in);

I(alpha2) <+ ddt(V(alpha));

 

  The KCL at alpha forces I(alpha1) + I(alpha2) = 0  and solve the differntial equation.   

 

I went and checked the results.

At  $abstime = t1

     Vx * V(in)= x1

     V(alpha)= y1

At  $abstime = t2

     Vx * V(in)= x2

     V(alpha)= y2

 

I think y2 should be eqaul to 

         y2= [ x2 * (t2 - t1) ]  + y1.

But SPECTRE is showing something different than "y2" .

Can anybody please tell where I am going wrong ?

 

Kind Regards,

 

 

 

 

 

  • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information