@User In some designs i did in the past verilog-A blocks were used. Some simulators just require the verilog-A instance to be netlisted like a spice subcircuit call, then you provide the path of the compiled model to the simulator. I have done this with HSPICE. I have not done these tests on ngspice.
So if you need Verilog-A with ngspice send me a test case, i mean the interface (i/o ports) and the verilog-A code of the block and i will do the tests.
🌍 1
s
Sahil Shah
07/03/2021, 9:35 PM
Thanks. I tried it out with a verilog A code and a simple RC circuit. But I am not too sure where to include the verilog-A file. Is this a good place to upload the xschem schematic and verilog-A model?
This has both verilog A file and xschem schematic.
s
Stefan Schippers
07/04/2021, 6:04 AM
Ok, thanks , will take a look at this...
Stefan Schippers
07/04/2021, 6:22 AM
@Sahil Shah In order to use Verilog-A with ngspice you must compile ngspice with adms support, then use AdmsXml to convert a verilog-A model to C code. I have never done the Verilog-A --> C compiling and i have not installed AdmsXml. Please read Chapter 13 of ngspice manual.
I think using verilog-A with ngspice is not that straightforward, you probably need to rebuild ngspice with the C-code of the new model. Not feasible for a generic user wishing to simulate his circuit.
🌍 1
s
Sahil Shah
07/04/2021, 1:06 PM
Hmm interesting. Let me try this out. I was having issues before while installing it with AdmsXml. But let me try it out.
Thanks for the help
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.