Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] Verilog implementation for d/dt time derivative

Status
Not open for further replies.

star_golden

Junior Member level 1
Joined
Jul 3, 2013
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
99
Hello,

I am trying to implement Capacitor and Inductor models in Verilog.
These models have Voltage and Current equations which involve time derivative dI/dt and dV/dt.
In Verilog AMS, we have a built-in function ddt().

But How do I implement these time derivative functions in Verilog ?

Can anyone please help ?

Thanks and regards
 

Genrate time points with enough small time space.
Then approximate ddt() by time diffrence of one order or second order.
 

Hi pacho_hideboo,

What I understand from your post is :
dI/dt = ((I at time 1 - I at time 0) + (I at time 2 - I at time 1)) / (time 1 - time0)

Is this correct ?
 

Last edited:

If f(t) changes linearly and time points are also linear (they are evenly spaced ) then, output df/dt will be a constant.
Even though the input is changing linearly with time, output remains constant.
Am I missing anything here ? How to solve this situation ?
 

If f(t) changes linearly and time points are also linear (they are evenly spaced ) then, output df/dt will be a constant.
f(t)=a*t
df/dt=a ; constant

Even though the input is changing linearly with time, output remains constant.
Am I missing anything here ?
How to solve this situation ?
I can not understand what you are confusing at all.
 

How to solve this situation ?
How to solve what? You are describing an elementary property of derivative.

By the way, you are dealing with finite numerical quantities. So f(t) can't endlessly increase, it has to decrease at times and df/dt won't always stay constant.
 

Yes.. Thanks FvM, pancho_hideboo.
I got it and fixed my problem.

Thanks
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top