Is there any way to ignore instance during netlisting ?
I have testpoints that cause error during simulation (I like to have the same schematic for simulation and for fab...).
If not, perhaps it would be a good idea to add a parameter which would allow to omit selected instances during ngspice netlisting.
Regards,
RG
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there any way to ignore instance during netlisting ?
I have testpoints that cause error during simulation (I like to have the
same schematic for simulation and for fab...).
If not, perhaps it would be a good idea to add a parameter which would
allow to omit selected instances during ngspice netlisting.
OK, my question was not obvious : I use gnetlist with "-g spice-sdb" option for ngspice simulation.
But sometimes, I want some device to be present (and connected) in the schematic, but omited by the netlister in case of simulation netlist (but not in case of e.g. PCB manufacturing).
Renaud
Last edit: gag2000 2014-05-23
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You could put these conditionally used devices in a two separate libraries. In one
of the libraries its subcircuit is empty. If you list all your libraries in a separate .inc file, a text editor can help you comment out the unwanted one.
I normally add a parameter to a subckt which deactivates it (e.g. by multiplying the input by 0 or 1). This can result in inactive devices being netlisted, which is bad for speed reasons. However, it is very convenient if one can simulate a system's open loop and closed loop behavior from the same schematic.
-marcel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I asked the question on the geda mailing list.
John Doty has developed a backend to deal with such properties.
Look at https://github.com/noqsi/gnet-spice-noqsi for further information and download.
Regards,
Renaud
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear all,
Is there any way to ignore instance during netlisting ?
I have testpoints that cause error during simulation (I like to have the same schematic for simulation and for fab...).
If not, perhaps it would be a good idea to add a parameter which would allow to omit selected instances during ngspice netlisting.
Regards,
RG
Hi RG.
I'm not sure what you're getting at. NGSPICE doesn't have a netlister. What
schematic package are you using and how do you netlist?
I wrote a netlister for gEDA gSchem that might work for you. Can't remember
if it ignores devices that aren't connected, but I'm fairly sure it does.
http://sourceforge.net/projects/netlist/
--
Kind regards,
Justin Fisher.
On Thu, May 22, 2014 at 7:51 PM, gag2000 gag2000@users.sf.net wrote:
Hi RG.
I'm not sure what you're getting at. NGSPICE doesn't have a netlister. What schematic package are you using and how do you netlist?
I wrote a netlister for gEDA gSchem that might work for you. Can't remember if it ignores devices that aren't connected, but I'm fairly sure it does.
http://sourceforge.net/projects/netlist/
--
Kind regards,
Justin Fisher.
Hi Justin,
OK, my question was not obvious : I use gnetlist with "-g spice-sdb" option for ngspice simulation.
But sometimes, I want some device to be present (and connected) in the schematic, but omited by the netlister in case of simulation netlist (but not in case of e.g. PCB manufacturing).
Renaud
Last edit: gag2000 2014-05-23
You could put these conditionally used devices in a two separate libraries. In one
of the libraries its subcircuit is empty. If you list all your libraries in a separate .inc file, a text editor can help you comment out the unwanted one.
I normally add a parameter to a subckt which deactivates it (e.g. by multiplying the input by 0 or 1). This can result in inactive devices being netlisted, which is bad for speed reasons. However, it is very convenient if one can simulate a system's open loop and closed loop behavior from the same schematic.
-marcel
Thank you for the proposal Marcel.
Just adding a property would be, in the way I use gEDA, more convenient for me (like the graphical property).
Renaud
Hi Marcel and Justin,
I asked the question on the geda mailing list.
John Doty has developed a backend to deal with such properties.
Look at https://github.com/noqsi/gnet-spice-noqsi for further information and download.
Regards,
Renaud
Sorry for the (long) delay in answering.
You can use .if(expr) .else .endif dotcard
commands to conditionally add devices/instances
to a netlist.
I guess expr might be an evaluated environment
variable ( e.g. $NETLIST ), but I didn't test
this.
-marcel