• 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. verilogA encryption for spectre

Stats

  • Locked Locked
  • Replies 13
  • Subscribers 128
  • Views 20608
  • 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

verilogA encryption for spectre

Fabb
Fabb over 11 years ago

Hello,

 

I would like to encrypt a compact analog model written in verilogA and executed with spectre and ultrasim.

In the spectre doc, I found that a netlist could be encrypted wtih

spectre_encrypt [-i input_file] [-o output_file] [-all]

but what about a verilogA file?

 Regards,

 

Fabrice

  • Cancel
Parents
  • Amar Kumar
    Amar Kumar over 5 years ago

    Hello there,

    I have encrypted a simple verilog file using "spectre_encrypt" command.

    When i try to simulate it using "spectre" , it gives pragma error.

    ERROR (VACOMP-1588): "verilog_enc_line.v", line 12: Could not decrypt the encrypted file.
    invalid or unknown or incomplete pragma specification 'NO ERROR'
    Check that the encryption key is valid and that the version of the encryptor for this file is compatible with (not
    newer than) the version of the decryptor.
    ERROR (VACOMP-1588): "Error: unexpected EOF or end of line//pragma protect begin_protected"
    "verilog_enc_line.v", line 13: Could not decrypt the encrypted file.
    invalid or unknown or incomplete pragma specification 'invalid or unknown or incomplete pragma specification 'NO
    ERROR''
    Check that the encryption key is valid and that the version of the encryptor for this file is compatible with (not
    newer than) the version of the decryptor.

    My "run Simulation" file looks like below.

    rsim (a b) simpleres
    simulator lang = spectre
    ahdl_include "verilog_enc_line.v"
    tran tran stop=10n errpreset=conservative write="spectre.ic" writefinal="spectre.fc" annotate=status maxiters=5

    Any help is appreciated.

    Thanks & Regards,

    Amar

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 5 years ago in reply to Amar Kumar

    Hi Amar,

    You can't use spectre_encrypt for Verilog-A; this is for encrypting spectre netlists. For Verilog-A you need to use the xmprotect (ncprotect in older versions) that's in <SPECTREinstDir>/tools.lnx86/bin as described in this article: How can I encrypt a verilogA module ?

    In essence, something like:

    xmprotect -extension vap -language vlog -autoprotect mymodule.va

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 5 years ago in reply to Amar Kumar

    Hi Amar,

    You can't use spectre_encrypt for Verilog-A; this is for encrypting spectre netlists. For Verilog-A you need to use the xmprotect (ncprotect in older versions) that's in <SPECTREinstDir>/tools.lnx86/bin as described in this article: How can I encrypt a verilogA module ?

    In essence, something like:

    xmprotect -extension vap -language vlog -autoprotect mymodule.va

    Andrew.

    • 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