• 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 Shared Code
  3. Specman Makefile generator utility

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 39
  • Views 17297
  • 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

Specman Makefile generator utility

StephenH
StephenH over 16 years ago

I've heard lots of people asking for a way to generate Makefiles for Specman code, and it seems there are some who don't use "irun" which takes care of this automatically. So I wrote this little utility to build a basic Makefile based on the compiled and loaded e code.

It's really easy to use: at any time load the snmakedeps.e into Specman, and use "write makefile <name> [-ignore_test]".
This will dump a Makefile with a set of variables corresponding to the loaded packages, and targets to build any compiled modules.
Using -ignore_test will avoid having the test file in the Makefile, in case you switch tests often (who doesn't?).

It also writes a stub target so you can do "make stub_ncvlog" or "make stub vhdl" etc.

The targets are pretty basic, I thought it was more useful to #include this into the main Makefile and define your own more complex targets / dependencies as required.

The package uses the "reflection" facility of the e language, which is now documented since Specman 8.1, so you can extend this utility if you want (please share any enhancements you make).

 Enjoy! :-)

Steve.

snmakedeps_v1.0.zip
  • Cancel
Parents
  • StephenH
    StephenH over 16 years ago

    At risk of producing a monologue that nobody is reading... ;-)

    A colleague asked if I could update the generator to produce a "tarball" target, to make it easy to archive or transfer the source code.
    So here it is! The Specman command is unchanged, you simply have a new make target called tarball:

    make -f Makefile.sn tarball

    snmakedeps_v1.3.zip
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • StephenH
    StephenH over 16 years ago

    At risk of producing a monologue that nobody is reading... ;-)

    A colleague asked if I could update the generator to produce a "tarball" target, to make it easy to archive or transfer the source code.
    So here it is! The Specman command is unchanged, you simply have a new make target called tarball:

    make -f Makefile.sn tarball

    snmakedeps_v1.3.zip
    • 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