• 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. Custom IC Design
  3. how to section comment in a DSPF file

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 127
  • Views 11098
  • 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

how to section comment in a DSPF file

Svilen64
Svilen64 over 3 years ago

Hi,

I am using an extracted netlist DSPF file and I need to comment a bunch of lines. I was wondering if there is a possibility to comment everything at once. I tried /*   */ but it doesn't work and generates errors when I started the spectre simulation. Of course, I can always go and put * at the beginning of each and every line but that will be a lot of * and time needed to spend on this.

Thanks

Svilen

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    Svilen,

    I don't believe the DSPF standard supports multi-line or block comments.

    However, this is pretty easy to do in most editors. For example, in vi you might do:

    1. Go to the first line and hit "ma" (to mark the first line)
    2. Go to the last line and then enter:
      1. :'a,.s/^/*/

    To remove them, it would be the same step, but the 2a above would be :'a,.s/^\*//

    In nedit, select the lines you want to comment, and then do Search->Replace, enter "^" as the String to Find, "*" as the Replace With, and check regular expression, then press the "Selection" button to apply in the selected block:

    To remove them the String to Find would be "^\*" and the Replace With would be blank.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    Svilen,

    I don't believe the DSPF standard supports multi-line or block comments.

    However, this is pretty easy to do in most editors. For example, in vi you might do:

    1. Go to the first line and hit "ma" (to mark the first line)
    2. Go to the last line and then enter:
      1. :'a,.s/^/*/

    To remove them, it would be the same step, but the 2a above would be :'a,.s/^\*//

    In nedit, select the lines you want to comment, and then do Search->Replace, enter "^" as the String to Find, "*" as the Replace With, and check regular expression, then press the "Selection" button to apply in the selected block:

    To remove them the String to Find would be "^\*" and the Replace With would be blank.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Svilen64
    Svilen64 over 3 years ago in reply to Andrew Beckett

    Thanks, Andrew, for replying. I actually did it with nedit regular expression pretty much the same as you explained.

    • 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