Creating a code Model

  • Actually I am trying to generate a code model for RC circuit to be called using ngspice and I am facing confusion between the code I downloaded from:

    and the manual

    Ngspice Users Manual

    Version 25

    where in section 27.2

    “ Creating Code Models”

    It is mentioned that :

    A. We need to create new directory for the new code model inside the new library file.

    But from the downloaded source file we found that libraries are .cm files not directories @ lib/ngspice folder inside the root folder downloaded from the above website.

    So what shall we do in order to make it work.

    B. I do not have any idea about the format of ifspec.ifs and cfunc.mod files, can you please assist with examples.

    If you can send me your phone number I will highly appreciate that .