Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Activate $write() for encrypted Verilog-A modules

Status
Not open for further replies.

pancho_hideboo

Advanced Member level 5
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
    170731-225500.png
    78 KB · Views: 67

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top