• 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. Setting option duplicatemodel=ignore in spectre does not...

Stats

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

Setting option duplicatemodel=ignore in spectre does not work

Frode Telsto
Frode Telsto over 10 years ago

I run ADEXL (IC6.1.6) and want to redefine a model, and have tried to add duplicatemodel=ignore in my spectre simulations. I have tried to add: 

myOpt options duplicatemodel=ignore

in my modelfile that is included in the simulations. 

I have also tried to add duplicatemodel=ignore in Options->Analog->Miscellaneous->OTHER OPTIONS->Additional Arguments.

But I still get an error when I run my simulation: ERROR: .... Model `nch' has already been defined.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    Hi Frode,

    A couple of things. Are you using a recent enough MMSIM version (this was introduced during the life of MMSIM11.1, I believe) - I expect so?

    The other thing is that if the model is a subckt model, this won't help - you'd have to use duplicate_subckt instead (or as well).

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Frode Telsto
    Frode Telsto over 10 years ago

    I am using mmsim13.10.186_isr5.

    I am trying to map the TSMC nch model over to nch_mac model by typing:

    model nch nch_mac

    in my model include file. This works if I comment out the mos section in the TSMC model file, but if I would like to  avoid modifying the TSMC file.

    The nch_mac is an inline subckt. 

    I tried to add:

    myOpt options duplicate_subckt=ignore

    before the model mapping line in my model include file, but get the same error.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    Hi Frode,


    I'll try with an older version later - I only have the latest hotfix of MMSIM13.1 with me right now.

    This example works fine for me - maybe you can check running spectre on this netlist:

    //

    model nch bsim4 type=n

    inline subckt nch_mac (d g s b)
        parameters w=1u l=1u

        nch_mac (d g s b) nch_mac w=w l=l
        model nch_mac bsim4 type=n
    ends nch_mac

    myOpts options duplicatemodel=ignore
    // new definition to map it...
    model nch nch_mac

    M0 (D G 0 0) nch w=2u l=0.2u
    VD (D 0) vsource dc=1.2
    VG (G 0) vsource dc=0.8

    dc dc

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    Hi Frode,

    I tried the above example in the same subversion as you, and it worked OK.

    Maybe contacting customer support so that we can take a look together would be a good idea? You can always mention that we've discussed it on the forums and that I'd be happy to look at it with you.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Frode Telsto
    Frode Telsto over 10 years ago

    Hi Andrew,

    Thanks for your input. It helped me finding that the problem is binning. Your example works for me too, but when I add binning to the model it fails. See my modified example below.

    Regards,

    Frode


    model nch bsim4 {
    1:type=n
    2:type=n
    }

    inline subckt nch_mac (d g s b)
    parameters w=1u l=1u

    nch_mac (d g s b) nch_mac w=w l=l
    model nch_mac bsim4 {
    1:type=n
    2:type=n
    }
    ends nch_mac

    myOpts options duplicatemodel=ignore
    // new definition to map it...
    model nch nch_mac

    M0 (D G 0 0) nch w=2u l=0.2u
    VD (D 0) vsource dc=1.2
    VG (G 0) vsource dc=0.8

    dc dc

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    Hi Frode,

    I see the problem. The good news is that in more recent subversions, the problem has been fixed. I can see the problem in versions up to 13.1.1.292.isr12, but not in 13.1.1.420.isr14 (I don't have ISR13 handy) - it works there. Similarly it works in 14.1.0.255.isr2 (not in the base version of MMSIM14.1, and I don't have ISR1 handy either). I did a very quick search and couldn't see precisely what triggered this to get fixed, but my experimentation shows it working nowadays at least.

    So please try with a later (or the latest) hotfix of either MMSIM13.1 or MMSIM14.1.

    Kind Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Frode Telsto
    Frode Telsto over 10 years ago

    Thanks Andrew,

    I tried version 14.1.0.400.isr4 and then it works. 

    Unfortunately I have to stick to the workaround where I modify the TSMC model file as I'm working on a company wide setup, and it may take a while till all projects have changed to the latest version of mmsim.

    Regards,

    Frode

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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