• 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. Functional Verification
  3. Using Dynamically Allocated Memories (PLI)

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 65
  • Views 13943
  • 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

Using Dynamically Allocated Memories (PLI)

MVERMA
MVERMA over 13 years ago

Hi 

I am using cadence's pli for dynamically allocated memories. 

for system tasks:

damem_inith - there is one argument which needs file name in the following format:

"bin.dat". 

I would like to replace it by dynamic file name i.e <seed>.dat. So for each random test it will look for filename as <seed> .dat

Is it possible with this system tasks?

 

Thanks!

  • Cancel
Parents
  • tpylant
    tpylant over 13 years ago

    Try $value$plusargs(user_string, variable).

    This system function searches the list of plusargs on the command line for a specified string. The string is specified as the first argument to the system function. If the string is found, the remainder of the string (that is, the part of the string after the portion that matches the user_string) is converted into the specified format, and the resulting value is stored in the specified variable. For example:

    reg [8*32:1] testname

    ...

    if ($value$plusargs("TESTNAME=%s", testname))

      begin

        $display("Running test %0s.", testname);

        startTest();

      end

    If you invoke the simulator with the following command line, the variable testname gets the value good_test.

    % ncsim +TESTNAME=good_test [other_options] snapshot_name

    See 'cdnshelp' or Section 17.10.2 of the IEEE 1364-2001 standard for details on $value$plusargs.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • tpylant
    tpylant over 13 years ago

    Try $value$plusargs(user_string, variable).

    This system function searches the list of plusargs on the command line for a specified string. The string is specified as the first argument to the system function. If the string is found, the remainder of the string (that is, the part of the string after the portion that matches the user_string) is converted into the specified format, and the resulting value is stored in the specified variable. For example:

    reg [8*32:1] testname

    ...

    if ($value$plusargs("TESTNAME=%s", testname))

      begin

        $display("Running test %0s.", testname);

        startTest();

      end

    If you invoke the simulator with the following command line, the variable testname gets the value good_test.

    % ncsim +TESTNAME=good_test [other_options] snapshot_name

    See 'cdnshelp' or Section 17.10.2 of the IEEE 1364-2001 standard for details on $value$plusargs.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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