• 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. model card vith a verilogA model through spectre

Stats

  • Locked Locked
  • Replies 11
  • Subscribers 127
  • Views 22169
  • 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

model card vith a verilogA model through spectre

Fabb
Fabb over 12 years ago

Hello,

I would like to run my own verilogA model with spetcre through a model card approach.

Nevertheless my model paramaters are not recognized, so not took into account in the simulation

#------------------------mymodel.va
module mymodel(T1,T2);
    
    inout T1, T2;
    electrical T1, T2;

    // instance parameters
    parameter real    ip1=1;
    //Technology Parameters
    parameter real tp1=1;
        analog begin
        @(initial_step)
        begin
            $strobe("----> mymodel");
            $display("Instance parameters: ip1=%r, ip1);
            $display("Technology parameters: tp1=%r , tp1);
        end
    endmodule

#------------------------model card
simulator lang=spectre

library test

section means
    parameters efftp1 = 777
        include "model_cards.scs" section=core
endsection means


section core
    ahdl_include "mymodel.va"        
    model device1 mymodel
        +tp1 = efftp1
endsection core
endlibrary

#------------------------cdf parameters
((nil name "ip1" paramType "string" defValue "1" prompt "ip1" choices nil parseAsNumber t units "lengthMetric" use nil display nil editable nil dontSave nil callback nil storeDefault t parseAsCEL t) (nil name "model" paramType "string" defValue "" prompt "model name" choices nil parseAsNumber nil units nil use nil display nil editable nil dontSave nil callback nil storeDefault nil parseAsCEL t))
(nil spectre (nil modelParamExprList "" optParamExprList "" opParamExprList "" stringParameters "" propMapping "" termMapping "nil T1 \\:1 T2 \\:2" termOrder "T1 T2" componentName "" instParameters "radius" otherParameters "model" netlistProcedure "") hspiceD (nil opParamExprList "" optParamExprList "" propMapping "" termMapping "" termOrder "" namePrefix "" componentName "" instParameters "" otherParameters "" netlistProcedure "") auLvs (nil namePrefix "" permuteRule "" propMapping "" deviceTerminals "" termOrder "" componentName "" instParameters "" otherParameters "" netlistProcedure "") auCdl (nil dollarEqualParams "" dollarParams "" modelName "" namePrefix "" propMapping "" termOrder "" componentName "" instParameters "" otherParameters "" netlistProcedure "") ams (nil isPrimitive "" extraTerminals "" propMapping "" termMapping "" termOrder "" componentName "" excludeParameters "" arrayParameters "" stringParameters "" referenceParameters "" enumParameters "" instParameters "" otherParameters "" netlistProcedure ""))
(nil paramLabelSet nil opPointLabelSet nil modelLabelSet nil paramDisplayMode nil paramEvaluate "nil nil nil nil nil" paramSimType nil termDisplayMode nil termSimType nil netNameType nil instDisplayMode nil instNameType nil)
(nil doneProc "" formInitProc "" promptWidth 175 fieldWidth 350 buttonFieldWidth 340 fieldHeight 35)

#------------------------error message

tp1 not recognized in mymodel.va


How should I proceed to allow parameters to be modified in a modelCard.

Regards,

Fabrice

  • Cancel
Parents
  • Ahmed Taha
    Ahmed Taha over 11 years ago
    1- In case of using the verilog-a model:
    -- In the model card it is specified in the first line:
       .model nmos1 bsimcmg 
       Will the word ''bsimcmg'' refer to the verilog-a file or the built-in bsimcmg in spectre.
       (how it will differentiate between the verilog-a and the built-in model, I created the symbol from the verilog-a to excute the verlog-a           model and I thought that we should use the symbol nmos4 for the built-in bsimcmg )
    -- Regarding the attributes for the verilog-a, Do I need to add only these 2 lines:
     (* compact_module *)
     (* instance_parameter_list ={ip1} *)
     
    2- If I would like to use the built-in bsimcmg in spectre, what I did is:
    - I defined the modelcard in the model libraries 
    - I used the nmos4 in analogLib 
    - I specified the model name: nmos1 (as inicated in the modelcard)
    - Then I used CDF->Edit  and set the CDF type to base to add coressponding parameters like nfin,hfin,tfin,....
    When I run simulation I get the characteristics but the added parameters have no effect on the operation (not defined properly)
    So How can I define them properly?
     
    Sorry for the long post, and thanks very much for your help. 
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Ahmed Taha
    Ahmed Taha over 11 years ago
    1- In case of using the verilog-a model:
    -- In the model card it is specified in the first line:
       .model nmos1 bsimcmg 
       Will the word ''bsimcmg'' refer to the verilog-a file or the built-in bsimcmg in spectre.
       (how it will differentiate between the verilog-a and the built-in model, I created the symbol from the verilog-a to excute the verlog-a           model and I thought that we should use the symbol nmos4 for the built-in bsimcmg )
    -- Regarding the attributes for the verilog-a, Do I need to add only these 2 lines:
     (* compact_module *)
     (* instance_parameter_list ={ip1} *)
     
    2- If I would like to use the built-in bsimcmg in spectre, what I did is:
    - I defined the modelcard in the model libraries 
    - I used the nmos4 in analogLib 
    - I specified the model name: nmos1 (as inicated in the modelcard)
    - Then I used CDF->Edit  and set the CDF type to base to add coressponding parameters like nfin,hfin,tfin,....
    When I run simulation I get the characteristics but the added parameters have no effect on the operation (not defined properly)
    So How can I define them properly?
     
    Sorry for the long post, and thanks very much for your help. 
    • 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