How to run DBLayoutToNetlist.py or dbLayoutVsSchematic.py file from command terminal.

I am trying to run DBLayoutToNetlist.py or dbLayoutVsSchematic.py file from command terminal or bash script.
Can anyone help me to do this.

Comments

  • You mean batch mode?

    Use:

    klayout -b -r yourscript.py
    

    or any other .rb, .drc, .lvs, .lym ... file.

    Please note that in this case, the script needs to load all layouts itself - as in batch mode there is no view, no layouts can be loaded by listing them in the klayout command.

    Matthias

  • any example script that work in batch mode and save result in a file?

  • Please don't let me guess ... I don't like this game. Please give some background information.

    What are you planning to do?

  • Hi Matthias,
    Sorry for the inconvenience.

    I am trying to run DBLayoutToNetlist.py from command terminal.
    The file is available in test folder https://github.com/KLayout/klayout/blob/master/testdata/python/dbLayoutToNetlist.py
    I have a layout and I want it to generate netlist from DBLayoutToNetlist from command terminal.
    This is what I want to do.

    Thanks

    Akshay

  • Please help me.. I want to understand python package available for pcell

  • This is a unit test ... not a file you can run!

    Frankly, I don't have the impression you have tried to understand the concepts.

    For netlist generation, you can use the LVS feature sans "compare". But you'll need some understanding how to extract devices and define a connectivity. You should have read and understood the details in this documentation: https://www.klayout.de/doc-qt4/manual/lvs.html

    Matthias

Sign In or Register to comment.