• 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. Problems to run PSP and BSIM3 compact models in verilog...

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 125
  • Views 14241
  • 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

Problems to run PSP and BSIM3 compact models in verilog-A

ronaldomponte
ronaldomponte over 11 years ago

 =============================================================================

Cadence (R) Virtuoso (R) Spectre (R) Circuit Simulator

Version 12.1.0.272 32bit -- 25 Sep 2012

virtuoso -W: sub-version  IC6.1.5.500.7 

spectre -W:  

/usr/EDATools/cadence/mmsim121/tools.lnx86/spectre/bin/32bit/spectre: /usr/EDATools/cadence/mmsim121/tools.lnx86/lib/SuSE/libelf.so.1: no version information available (required by /usr/EDATools/cadence/mmsim121/tools/lib/libvirtuos_sh.so)

sub-version  12.1.0.272 

 =============================================================================

Hello,

 I'm quite new working with cadence tools, so my apologies in advance if some misunderstood.

My attempt to run a behavioral MOSFET model using PSP and BSIM3 verilog-a codes (available in their respective websites) is facing some errors:

1) When trying to run the PSP model, I do compile the verilog-a code successfully, but when I run virtuoso the following error occurs:

Error found by spectre during AHDL read-in.

    ERROR (VACOMP-2065): "/home/ronaldomponte/Desktop/ISFET_MODEL_VERILOG-AMS/isfet/psp/veriloga/PSP103_module.include", near line 2940: Encountered ddx operator in a conditional (if-else) statement. ddx operator cannot appear in a conditional (if-else) statement. Correct the problem and try again.

    ERROR (VACOMP-1816): Exiting AHDL compilation.

    ERROR (SFE-91): Error when elaborating the instance PSP103VA. Simulation should be terminated. 

 

 It seams to me that the compiler does not support the "ddx" operator in conditional statements and I don't know how to solve this.

 

 2) The BSIM3 verilog-A code fails to compile due to the following errors:

 Error found by spectre during AHDL compile.

    ERROR (VACOMP-1788):

        "/home/ronaldomponte/Desktop/ISFET_MODEL_VERILOG-AMS/isfet/bsim3/veriloga/compact.vams",

        line 62: Encountered an unrecognized compiler directive. Check the

        validity of the compiler directive.

    ERROR (VACOMP-2212): "BSIM3npeak<<--? );

"

        "/home/ronaldomponte/Desktop/ISFET_MODEL_VERILOG-AMS/isfet/bsim3/veriloga/veriloga.va",

        line 1809: Encountered undeclared identifier: . Declare the identifier

        before using it.

    ERROR (VACOMP-2259):

        "/home/ronaldomponte/Desktop/ISFET_MODEL_VERILOG-AMS/isfet/bsim3/veriloga/veriloga.va",

        line 1809: syntax error.

 

The first error happens in the following statement:

--------------------------------------------------------------------------------------- 

/* Print out value:

   example: `DEBUG_STROBE("myVariable", myVariable); */

`define DEBUG_STROBE(xName, x) \

`ifdef DEBUG \

    $strobe("\n%s = %g", xName, 1.0*x) \

`else \

    ; \

`endif

 

--------------------------------------------------------------------------------------- 

 
While the second one with this:

--------------------------------------------------------------------------------------- 

 if (!BSIM3npeakGiven && BSIM3gamma1Given) begin

 

            T0 = BSIM3gamma1 * BSIM3cox;

            BSIM3npeak = 3.021E22 * T0 * T0;

            $strobe("\nWARNING: npeak not given, gamma1 given: npeak=%g", \

                     BSIM3npeak);

        end  

--------------------------------------------------------------------------------------- 

Again, it seems the compiler does not support some directives and/or operators.

I am using the MMSIM12.1 that might be the latest version available.

I really appreciate if anyone could give me an insight about what is the problem. 

The PSP code is available in pspmodel.asu.edu/.../psp103.1.1.tar.gz, while the BSIM3 is attached.

 

 

 

bsim3.zip
  • Cancel
Parents
  • ronaldomponte
    ronaldomponte over 11 years ago

    Wow Andrew,

     Very very helpful solution! It fixed both cases. Thank you very much.

    As a stated before, I'm a new user in cadence tools. So, that was the way I found to test the models and probably is not the best one.

    Could you explain or give me directions on how can I use/select the built-in models in spectre? Or maybe I need to add a new thread with this issue?

    Thank you very much for helpful and speedy solution.

    I really appreciate your efficiency.

    Kind regards.

    Ronaldo 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • ronaldomponte
    ronaldomponte over 11 years ago

    Wow Andrew,

     Very very helpful solution! It fixed both cases. Thank you very much.

    As a stated before, I'm a new user in cadence tools. So, that was the way I found to test the models and probably is not the best one.

    Could you explain or give me directions on how can I use/select the built-in models in spectre? Or maybe I need to add a new thread with this issue?

    Thank you very much for helpful and speedy solution.

    I really appreciate your efficiency.

    Kind regards.

    Ronaldo 

    • 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