As in ngspice it's possible to manually turn off/on resistor noise, could a switch be added to res.sym, so that after creating the netlist it's created like R1 v1 v2 50 m=1 noisy=0?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As in ngspice it's possible to manually turn off/on resistor noise, could
a switch be added to res.sym, so that after creating the netlist it's
created like R1 v1 v2 50 m=1 noisy=0?
Thanks! The problem is, it will not work in Xyce as noisy=0 is a ngspice command, so as a result, res.sym will not work anymore if using Xyce. Maybe there is a better solution than just replacing the symbol?
Last edit: Patrick Fath 2025-06-08
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think you can create a res_noisy.sym symbol and add the format attribute above in the symbol.
symbols in the devices/ directory are generic and not bound to specific simulators so I prefer not to change res.sym.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As in ngspice it's possible to manually turn off/on resistor noise, could a switch be added to res.sym, so that after creating the netlist it's created like R1 v1 v2 50 m=1 noisy=0?
Ok. In the mean time you can set
value="50 noisy=0"
Il Ven 6 Giu 2025, 12:51 Patrick Fath p-fath@users.sourceforge.net ha
scritto:
Thanks! The problem is, it will not work in Xyce as noisy=0 is a ngspice command, so as a result, res.sym will not work anymore if using Xyce. Maybe there is a better solution than just replacing the symbol?
Last edit: Patrick Fath 2025-06-08
you can add these attributes to the resistor instances:
I think you can create a res_noisy.sym symbol and add the
format
attribute above in the symbol.symbols in the devices/ directory are generic and not bound to specific simulators so I prefer not to change res.sym.
Latest xschem commit adds res_noisy.sym that adds the noisy=1 or noisy=0 attribute if target simulator is set to ngspice.
Yes works great, really thanks for the contribution!