Home > Community > Forums > Custom IC SKILL > how to generate netlist without some subckt

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 how to generate netlist without some subckt 

Last post Wed, Dec 30 2009 6:33 PM by hanlei1975. 8 replies.
Started by hanlei1975 25 Dec 2009 01:31 AM. Topic has 8 replies and 3335 views
Page 1 of 1 (9 items)
Sort Posts:
  • Fri, Dec 25 2009 1:31 AM

    • hanlei1975
    • Not Ranked
    • Joined on Fri, Dec 25 2009
    • Posts 6
    • Points 105
    how to generate netlist without some subckt Reply

    Dear master

    how to generate spice netlist without some subckt, as following:

    the default netlist as following:

    **********test ckt**************

    R1 net1 net2 10k

    Xnosubckt in1 in2 out1 opamp

    .sunckt opamp in1 in2 out

    .....

    ..ends

    .end

     

    But I need no subckt netlist, as following, How can I get this? I set property like "nlAction" ,in subckt, actually there is nothing ,but I also need there is no ".sunckt......" How Can I get this ?

    I need something  like this

    **********test ckt**************

    R1 net1 net2 10k

    Xnosubckt in1 in2 out1 opamp

    ......

    .....

    .end

    thanks  a lot

    • Post Points: 20
  • Tue, Dec 29 2009 4:15 PM

    • Quek
    • Top 10 Contributor
    • Joined on Wed, Oct 14 2009
    • Singapore, 00-SG
    • Posts 1,070
    • Points 16,280
    Re: how to generate netlist without some subckt Reply

    Hi Hanlei

    I am not very clear on the question so there is some guessing here. Please correct me if I am wrong. I think you would like to have a spice (or maybe spice-like) netlist with only the instance lines and not the subckt definitions.You can do this with cdlout as follows:

    a. In the library manager, copy the symbol view of cell "opamp" as "auCdl" view
    b. In ciw, go to "File->Export->CDL"
    c. Fill in the fields accordingly and press OK button

    You will only get the instance line for cell opamp and not the subckt definition. Hope that this is what you need. : )  By the way, when posting a question, it would be great if you can provide the version info so that we can come up with the best solution for you.

    E.g.
    unix>virtuoso -W
    unix>icfb -W
    unix>spectre -W


    Best regards
    Quek

    • Post Points: 20
  • Tue, Dec 29 2009 4:56 PM

    • hanlei1975
    • Not Ranked
    • Joined on Fri, Dec 25 2009
    • Posts 6
    • Points 105
    Re: how to generate netlist without some subckt Reply

    Hi Quek

    My systerm info. as following:

    icfb : 5.10.41.169

    spectre 5.10.41.052404

    Thank you for your solution at first. My systerm is IC 5.1.41, I tried you solution , it works. but I need netlist format is HspiceS format, and I generate netlist from Analog Design Environment, so does there is any other options? I had used "nlAction" 4 years ago, but this time it does not works, maybe the version has difference.

     

    kind regards!

    Hanlei

    • Post Points: 20
  • Tue, Dec 29 2009 9:04 PM

    • Quek
    • Top 10 Contributor
    • Joined on Wed, Oct 14 2009
    • Singapore, 00-SG
    • Posts 1,070
    • Points 16,280
    Re: how to generate netlist without some subckt Reply

    Hi Hanlei

    I am a little confused. I think adding "nlAction=ignore" on an instance will prevent it from appearing in the netlist, not even the instance line. This should not be what you are looking for. I have found an obsolete solution #1835032 which might be what you need. Here is what you have to do:

    a. Copy the symbol view of your opamp as "hspiceS" view
    b. Edit the cdf property of opamp cell to include a string parameter named "macro"
    c. Enter the name of the subckt as the macro value, e.g. "opamp"
    d. In simInfo section for hspiceS, enter "macro" for "otherParameters"
    e. In "Setup->Environment" of ADE, enter the path to the file containing the subckt defintion
    f. Netlist using hspiceS. It should work now

    By the way, perhaps it is time to upgrade to the latest IC614 or IC5141. Your version of spectre is also very out-dated. : )


    Best regards
    Quek

    • Post Points: 20
  • Tue, Dec 29 2009 10:32 PM

    • hanlei1975
    • Not Ranked
    • Joined on Fri, Dec 25 2009
    • Posts 6
    • Points 105
    Re: how to generate netlist without some subckt Reply

    Hi Quek

    you are right, I got it. Thank you very much!

    one more question, I had done as you wrote a~f , but the netlist like:

    ..................................

    XI0 net1 net2 out opamp_opamp_G36

    .................................

    actually, my subckt named opamp, so when I do simulation use netlist, the simulation does not work. I need to modify the netlist,change "opamp_opamp_G36"  to "opamp, the simulation can work, so can wen generate the netlist like:

    XI0 net1 net2 out opamp

     

    Best regards!

    Hanlei

    • Post Points: 20
  • Wed, Dec 30 2009 1:11 AM

    • Quek
    • Top 10 Contributor
    • Joined on Wed, Oct 14 2009
    • Singapore, 00-SG
    • Posts 1,070
    • Points 16,280
    Re: how to generate netlist without some subckt Reply
    Hi Hanlei

    I am afraid that it is not possible to get the exact subckt name. At the very minimum, you will get cellname_G123. The underscore part is unavoidable. It is actually a feature of socketed netlister such as spectreS and hspiceS to avoid name collision. This means that you will either have to manually edit the names or use hspiceD (hspice Direct). : )  If you really have to use hspiceS, I think perhaps it would be good to use a perlscript to do the name corrections.

    Best regards
    Quek
    • Post Points: 20
  • Wed, Dec 30 2009 8:54 AM

    Re: how to generate netlist without some subckt Reply

    Hi Hanlei, Quek,

    Actually it is possible to do this.

    Add a CDF parameter called "macroArgumentStyle" with value "include" (anything other than "default" or "USE") and then the call should not get mapped - and it will also not complain about not being able to find the file macro.s (where macro is the name of the macro parameter).

    Again, this was in an old (now obsolete) solution. hspiceS (and all socket simulator interfaces) are long obsolete, and as such much of the information about how to customize the netlister has gone. hspiceS is no more after IC5141.

    Regards,

    Andrew.

     

    • Post Points: 20
  • Wed, Dec 30 2009 4:16 PM

    • Quek
    • Top 10 Contributor
    • Joined on Wed, Oct 14 2009
    • Singapore, 00-SG
    • Posts 1,070
    • Points 16,280
    Re: how to generate netlist without some subckt Reply

    Hi Andrew

    Thanks. : )  All the best for 2010.


    Best regards
    Quek

    • Post Points: 20
  • Wed, Dec 30 2009 6:33 PM

    • hanlei1975
    • Not Ranked
    • Joined on Fri, Dec 25 2009
    • Posts 6
    • Points 105
    Re: how to generate netlist without some subckt Reply

    Hi Andrew, Quke

    Problem was solved by your help.

    thanks a lot

    Happy new year! :)

    Kind regards!

    Han

    • Post Points: 5
Page 1 of 1 (9 items)
Sort Posts:
Started by hanlei1975 at 25 Dec 2009 01:31 AM. Topic has 8 replies.