<@U018FPT87NG> In some designs i did in the past verilog-A blocks were used. Some simulators just re...
s
@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
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?
Verilog_A.zip
This has both verilog A file and xschem schematic.
s
Ok, thanks , will take a look at this...
@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
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