Dear Dietmar, Thanks a lot for your help and instruction. Those non-ASCII characters are Chinese, I will delete them later. The reason why I tried the code before is from an instruction here, especially the figure there. I thought it is a more convenient and clear way to generate many devices with different parameters while just creating one lib file. I will try your method and find out another way to do so. Best regards,
Dear all, Recently, I tried to use verilog-a model in ngspice for some smiluations. I followed the instructions in the manual chapter 9.3.1.6. However, it always failed to pass parameters into verilog-a model, saying undefine parameters or unknown parameter. Because I wanted to pass parameters from higher level circuit (importing into Qucs-s using .lib files), it is tedious to create a new osdi for each parameter change. I attached simple test files and I ran them on ubuntu with ngspice 45.2. Any...