This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PSpice gives error: Subcircuit THS4521 used by X_U10 is undefined

Other Parts Discussed in Thread: THS4521

Hi,

Problem:
Problem using PSpice model THS4521. PSpice gives error: Subcircuit THS4521 used by X_U10 is undefined

I am using 16.6, sp8.

I downloaded the HTS4521 PSPICE model.
I contacted Cadence support and they told me this:
    That error message means the PSpice library model you're using for the THS4521 is dependent upon yet more sub-circuit definitions. You'll need to find those     models for the simulation if you intend to use this model library. If the vendor claims this file is a stand-alone model, then they are missing some declarations for      the models that are referenced within. You may want to contact the vendor and let them know, or see if there are support model libraries that go along with this on      e. As it stands, this particular model needs about 17 other sub-circuit definitions before it will be able to simulate in PSpice.

Can you please help fix this?
  • Nick,

    I just tried it on Pspice 16.6 and I didn't see any problem.

    I am not 100% sure how familiar you are with calling the model into Pspice/Allegro environment.

    Assuming you are not a first time user into Pspice/Allegro environment and assuming you are familiar with .OLB creation, then

    usually you can go to Left Panel of Pspice, then go to Pspice Resources section -> Model Libraries and check

    whether THS4521_pspice_model.txt is attached or not.

    If it is not attached, you can go to simulation profiles, then go to  Configuration Files tab -> Library -> Browse the File (THS4521_pspice_model.txt) ->

    Add to Design. Click Ok. This will enable you to run with no problem.

    Several cautions/suggestions:

    1. Make sure you don't alter THS4521_pspice_model.txt

    2. Don't copy paste partial content of the file on #1, so just call the entire thing

    3. On the .OLB creation make sure that your symbol is called THS4521_Model (and not THS4521) since this is

       what the top level .SUBCKT on the file on #1 is called.

    4. The easiest way to avoid mistakes on step #3, is by creating .OLB from "Model Editor"-> Open the file on #1 ->

        click/high light the top level .SUBCKT which is THS4521_Model -> Export to Capture Part Library -> Now you will the .OLB

       that can be attached into Library section of the .proj. Then instatiate the symbol "THS4521_Model" into your schematic.

    Hope this helps. Let me know if you still have some questions

    Herman

  • Hi,

    Thanks.  I finally got to try these tips.

    I think I tried them all, hopefully the proper way, but still does not work.

    But, as you say, I don't seem to see the model pointed in the Model Libraries in the left pane as you mentioned.

    Please see picture.  It clearly shows my design tree with the Model Libraries being empty (or would it show anything at all).  But, in the same picture, I am showing my simulation profile with the libraries properly pointed.

    What am I doing wrong??

    Nick

  • Nick,

    Attached is my project. You can use it for your project. You should be able to copy paste your schematic into the attached project.

    1050.THS4521-PSpiceFiles.zip

    To debug your own project/schematic:

    1. Delete any your symbol of THS4521 from your schematic

    2. Delete all .olb files (all three of them as I saw on your screen captured)

    3. Delete all your model files, all five of them

    4. Right click on left panel on "Design Cache" and "Library" and click on clear cache or someting similar

    5. Add the THS4521_pspice_model.olb (preferably from my attachment)

    6. Add part/symbol into your schematic: THS4521_model (and not THS4521)

    7. Include THS4521_Pspice_model.txt into your profile -> add to Design (there are three options add to Global, add to Design, add to Profile), I usually

        use add to Design.

    8. If after doing step #7, it still does not work. Close your cadence and try to start cadence by right click mouse and Run Cadence 16.6 as Administrator (Run as Admin)

    9. Repeat step 7.

    10. If it still does not work, I am not sure what to do unless you can attached your project, then I can figure it out; otherwise, I would recommend to use my project that

    I attached to this reply and use it for your template etc...