• 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. Hardware/Software Co-Development, Verification…
  3. acc_fetch_paramval_str() support in xsim/xtreme

Stats

  • Locked Locked
  • Replies 0
  • Subscribers 48
  • Views 534
  • 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

acc_fetch_paramval_str() support in xsim/xtreme

archive
archive over 18 years ago

Currently xsim does not support PLI function acc_fetch_paramval_str(). The work around is to write your own C code. Since we know it functions in a manner similar to acc_fetch_paramval() except that it returns a char*, we can use acc_fetch_paramval() and cast it to char *, something like this:

#include "veriuser.h"
#include "acc_user.h"
char *acc_fetch_paramval_str(handle h)
{
return((char *) (unsigned long) acc_fetch_paramval(h));
}

Compile this code from a C file such as:

gcc -c -I$AXIS_HOME/include mypli.c

Once you have compiled this file, link the .o object using "-pl mypli.o" option in xsim.

acc_fetch_paramval() cannot be used on 64-bit platforms to fetch a string value of a parameter, while acc_fetch_paramval_str() can be used on all platforms.


Originally posted in cdnusers.org by ashvarma
  • 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