The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 17th, 2024, 1:34am
Pages: 1
Send Topic Print
linear time-based events in verilog-ams (Read 2244 times)
steve_mac
Guest




linear time-based events in verilog-ams
Nov 23rd, 2005, 3:42am
 
hi i'm new with verilog-a and i'd like to ask how do i model a linear time-based event ?

example:  a linear voltage drop :

                            V = -3.4545 * time + Vdd

How do i put the "time" here in verilog-a syntax?

Thanks, appreciate the help.
Back to top
 
 
  IP Logged
Jess Chen
Community Fellow
*****
Offline



Posts: 380
California Bay Area
Re: linear time-based events in verilog-ams
Reply #1 - Nov 23rd, 2005, 9:57am
 
Try

V = -3.4545*$abstime + Vdd.

If you want incremental time, you can use

t = idt(1,0,assrt).

When assrt is nonzero, t remains at zero. When assrt is zero, t = incremental time. The only caution is that depending on the application, you may have to use conservative numerical options.

-Jess
Back to top
 
 
View Profile   IP Logged
steve_mac
Guest




Re: linear time-based events in verilog-ams
Reply #2 - Nov 23rd, 2005, 6:44pm
 
Hi Jess,

Thanks Smiley
Back to top
 
 
  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.