• 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. hdl_path() for sys: error in specman v5.1

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 65
  • Views 13374
  • 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

hdl_path() for sys: error in specman v5.1

Sarathi
Sarathi over 16 years ago

Hi

I have a DV using specman v4.3.1 for an IP which works. I am testing it using specman v5.1 and I get the following error for the line keep soft hdl_path() == "<~/module>" which is present in the unit sys:

*** Error: Constraint for hdl_path() of unit 'sys' is not allowed.
 Suggestion: The hdl_path() of units instantiated at unit sys may
 be constrained instead.

 Is there a simpler solution to solve this issue. I do not want to append the paths to each and every event / variable that is declared in the unit sys as there are many such variables and in many files

Appreciate any help on this

Sarathi 

 

  • Cancel
  • StephenH
    StephenH over 16 years ago

    Hi Sarathi.

    It sounds like you've instantiated all your verification code directly in sys, is that correct?
    Cadence does not recommend this approach as it makes the code harder to re-use between projects and from block to system level.
    Instead you should encapsulate your testbench code in at least one unit that you then instantiate inside sys.

    If all your code currently is written like this:
    extend sys {
      event clk is rise('clock') @sim;
      ...
    };

    You could fairly easily change to swap "sys" to another unit name, like this:
    unit tb like any_unit { };
    extend tb {  // instead of sys
      event clk is rise('clock') @sim;
      ...
    };
    extend sys { // new block of code
      tb : tb is instance;
      keep tb.hdl_path() == "~/";
    };

    This might still need some tweaking for your testbench coding style if you used any full hierarchical paths from sys, but it's definitely the right direction to be moving in.

    If you get really stuck, file a service request through SourceLink, and one of hte support team would be able to help you without you having to share any details of your code in this public forum...

    Good luck! :-)

    Steve.

    • Cancel
    • Vote Up 0 Vote Down
    • 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