• 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. PSpice
  3. Creating and editing models

Stats

  • State Not Answered
  • Replies 6
  • Subscribers 26
  • Views 14239
  • Members are here 0
More Content

Creating and editing models

Mohammad Sadr
Mohammad Sadr over 4 years ago

Hi Friends

I needed an LM565 to simulate, but unfortunately, the software did not have that LM565, and I accidentally saw this code on the Internet!
But I do not know how to give this code to the software!

The code is available in the following file

8637.SUBCIRCUIT.pdf

I have another problem and that I do not know what the format code is ?! And that when I copied this code from this PDF I had to change it. Can you help me and tell me if the code in the file above is the same as the code I wrote below or not ?!

Thank You

code:

.SUBCKT LM565 1 2 3 4 5 6 7 8 9 10
C_C1 0 init 1u
R_R3 $N_0001 6 1.75k
R_R4 0 init 1g
R_R6 8 9 10g
R_R2 3 0 10g
R_R1 $N_0002 7 3.6k
E_E15 $N_0002 0 VALUE { V($N_0003, 0)+V(6,0) }
E_E1 $N_0003 0 TABLE { 0.68*V(2, 0)*V(5,0) } + ( (-0.68,-0.68) (0.68,0.68) )
G_G1 init 0 VALUE { (V(7,0)-V(6,0))*0.00001458/(R0*C0*(V(10,0)-V(1,0))) }
E_E13 4 0 VALUE {sin(6.28*(0.27/(R0*C0))*(time+(R0*C0/(6.28*0.27))*V(0,init))) }
E_E3 $N_0001 0 VALUE {0.126354*(0.7+V(1,0))+0.873646*V(10,0) }
.ENDS
  • Sign in to reply
  • Cancel
Parents
  • ShawnLogan
    0 ShawnLogan over 4 years ago

    Dear Mohammad,

    Mohammad Sadr said:
    I have another problem and that I do not know what the format code is ?! And that when I copied this code from this PDF I had to change it. Can you help me and tell me if the code in the file above is the same as the code I wrote below or not ?!

    I am sorry, but your question(s?) is (are) not 100% clear to me. I think you are asking two questions.

    1. What netlist format is the code you provided in this post?

    2. Is this netlist provided in your post equivalent to that contained in the Adobe file for which you provided the URL?

    I will try to answer my "version" of your questions and hope I understand Mohammad...

    1. The netlist format is clearly SPICE. In order to use that file in a spectre based simulation, the following article will provide a step-by-step process to create a symbol for this netlist and include the SPICE formatted netlist in a spectre simulation. I have used the procedure successfully countless number of times.

    https://support.cadence.com/apex/ArticleAttachmentPortal?id=a1Od0000000nXEGEA2&pageName=ArticleContent

    2.  It appears the netlist code you provided in your post is a copy of that shown in the Adobe file whose link you provided. If you read this article, it includes the clause "Teh SPICE netlist of developed model is:", which confirms that the code is in SPICE format. Given that your netlist is identical to that in the Adobe file, I have no reason to believe the two are different. I am not sure why you might think they are not the same - but perhaps I do not have a correct understanding of your question!

    Shawn

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Mohammad Sadr
    0 Mohammad Sadr over 4 years ago in reply to ShawnLogan
    Unknown said:
    I am sorry, but your question(s?) is (are) not 100% clear to me. I think you are asking two questions.

    Dear ShawnLogan

    Source Code: 7870.PHASE LOCKED LOOP BEHAVIORAL MODELING.pdf

    I'm really sorry, I'm not very professional and I spent a whole day understanding this PDF file and the code inside it and I was confused.
    Because I do not know how to use this code!
    But in order for you to better understand my question, I ask in a different way so that your time and mine are not wasted.
    I use this software:

    When I put the LM565 chip on the schematic from the library, I realized that it could not be simulated with this chip, or in other words, it did not have a file PSpice! Well, I searched the internet for this piece, but I did not find it, but I managed to find a PDF that has a code in it, and I have no familiarity with this code! And I do not know how to use it. How do I copy the code inside this PDF file? I mean, in some places this code went to the next line and I was confused, I do not know how to copy this code! That I do not have a problem in simulation! Because I am not familiar with the format of this code and I always use the graphical interface to simulate the circuit.

    I came across this text in an educational document and realized that this program is a subcircuit netlist. But I still do not know how to use this code snippet ?!

      

    Now I had to go and design this IC (lm565) in the software, I guessed to myself that maybe this code was given to the schematic of that chip! But I came across this page and got stuck here!

    So what is the best way or the fastest way that I can use this code and be able to deliver this circuit to our college teacher by next week on Monday! I just want this circuit to answer! I will do whatever you say so that this circuit will respond.

    THANK YOU

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Mohammad Sadr
    0 Mohammad Sadr over 4 years ago in reply to ShawnLogan
    Unknown said:
    I am sorry, but your question(s?) is (are) not 100% clear to me. I think you are asking two questions.

    Dear ShawnLogan

    Source Code: 7870.PHASE LOCKED LOOP BEHAVIORAL MODELING.pdf

    I'm really sorry, I'm not very professional and I spent a whole day understanding this PDF file and the code inside it and I was confused.
    Because I do not know how to use this code!
    But in order for you to better understand my question, I ask in a different way so that your time and mine are not wasted.
    I use this software:

    When I put the LM565 chip on the schematic from the library, I realized that it could not be simulated with this chip, or in other words, it did not have a file PSpice! Well, I searched the internet for this piece, but I did not find it, but I managed to find a PDF that has a code in it, and I have no familiarity with this code! And I do not know how to use it. How do I copy the code inside this PDF file? I mean, in some places this code went to the next line and I was confused, I do not know how to copy this code! That I do not have a problem in simulation! Because I am not familiar with the format of this code and I always use the graphical interface to simulate the circuit.

    I came across this text in an educational document and realized that this program is a subcircuit netlist. But I still do not know how to use this code snippet ?!

      

    Now I had to go and design this IC (lm565) in the software, I guessed to myself that maybe this code was given to the schematic of that chip! But I came across this page and got stuck here!

    So what is the best way or the fastest way that I can use this code and be able to deliver this circuit to our college teacher by next week on Monday! I just want this circuit to answer! I will do whatever you say so that this circuit will respond.

    THANK YOU

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
Cadence Guidelines

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