The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Design Languages >> Verilog-AMS >> VPI function for analog signals https://designers-guide.org/forum/YaBB.pl?num=1193342443 Message started by at on Oct 25th, 2007, 1:00pm |
Title: VPI function for analog signals Post by at on Oct 25th, 2007, 1:00pm hi! Lets say I'm a newbie in AMS .. so there are maybe some points I miss or some missunderstandings, but give me a try: I wrote a VPI function which should be able to handle real values only. Since I found out AMS-Designer doesn't allow to call system tasks/functions within the analog block I tried to get around with a trick -- it looks like that: (module is maybe not compileable since i improvise - but it should be enough to give you an idea) Code:
I'm quite sure this is the type of code which works. The goal is clear: go only into the "always" block if spectre invokes a calculation and it is also clear that ncsims time-resolution is responsible for the accuracy of the delay, but what is unclear is the resulting delay between the input and output signals, which is exactly the delay of one analog timestep (that is e.g. around 50-100 times the digital timestep). The delay should be even visible if you skip the VPI function. Again, maybe this is a complete wrong approach to solve such a "simple" problem, thus, I'm open for any suggestions. thanks armin |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |