Activate $write() for encrypted Verilog-A modules

Status
Not open for further replies.

pancho_hideboo

Advanced Member level 5
Joined
Oct 21, 2006
Messages
2,847
Helped
767
Reputation
1,536
Reaction score
733
Trophy points
1,393
Location
Real Homeless
Activity points
17,490
I can encrypt the "mymodule.va" file and create a new encrypted file called "mymodule.va.vap" in Cadence Tools by the following.
https://www.edaboard.com/showthread.php?t=356383

However $write() is not valid for encrypted Verilog-A modules.

How can I activate $write() even for encrypted Verilog-A modules ?

Code:
analog begin
   @(initial_step) begin
      $write("\n");
      case(mode)
         0 : $write("%M: Constant Current Mode(Inom=%.2fuA)\n", Inom/1u);

         1 : $write("%M: Constant Resistance Mode(Vnom=%gVolts, Inom=%.2fuA, Rnom=%.2fkohm)\n",
             Vnom, Inom/1u, Rnom/1k);

         2 : $write("%M: Clip Current Mode(Imin=%.2fuA, Imax=%.2fuA, Vth=%gVolts, Vknee=%gVolts)\n",
             Imin/1u, Imax/1u, Vth, Vknee);
 

For Synopsys HSPICE, I can encrypt mymodule.va by the following.
Code:
unix> hspice -Is metaencrypt -i mymodule.va -o mymodule.vap -t randkey

In HSPICE, $write() is valid even for encrypted Verilog-A modules.

However $write() is not valid for encrypted Verilog-A modules in Cadence Tools.
 

Self-follow up.

One workaround is to invoke "Protection Pragmas".
 

Attachments

  • 170731-225500.png
    78 KB · Views: 46

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…