User Activity

  • Posted a comment on discussion ngspice-users on ngspice

    The path in xcode to @executable_path/../path_to_xtradev.cm had spaces and wrapping it in single quotes fixed it. Thanks for your help!

  • Posted a comment on discussion ngspice-users on ngspice

    Looking at your comment here: https://sourceforge.net/p/ngspice/discussion/127605/thread/6f7b34f2/#8ebd/fecf/cf60/4626 I successfully load ngspice as a static library and try to load codemodels dynamically like this: .control pre_codemodel ./ngspice/lib/xtradev.cm .endc I compiled ngspice with --enable-relpath and when I run otool -L xtradev.cm it points to /usr/lib/libSystem.B.dylib where it was installed at. I don't quite understand where I need to copy xtradev.cm to that was built in release64-sh/src/xspice/icm....

  • Posted a comment on discussion ngspice-users on ngspice

    I successfully build the codemodels and load dynamically using the install_name_tool to change the path. But I get an error when loading them: xtradev.cm: not a dylib Are the codemodels not dynamically shared libraries?

  • Posted a comment on discussion ngspice-users on ngspice

    I'm building ngspice as a static library and have troubles loading the codemodel: xtradev.cm I build ngspice as a static library like this: I change all references of -shared to -static in configure.ac as well as in src/Makefile.am I also changed src/xspice/icm/makedefs.in LDFLAGS = -static * ../configure --enable-relpath --enable-xspice --disable-debug --with-ngshared CFLAGS="-m64 -O2" LDFLAGS="-m64 -s Now I see the static libraries in the .lib folders of xspice except in xspice/icm folder. Is there...

  • Posted a comment on discussion ngspice-users on ngspice

    Sorry about the confusion: I did plot some curves and see now that the current is correct for the given voltage. Thank you!

  • Posted a comment on discussion ngspice-users on ngspice

    I ended up sending the command directly: pre_codemodel ./../lib/ngspice/xtradev.cm that was wrapped in a control statement. I have two diodes in parallel. When I do a dc analysis: dc v1 3 3 3, the currents through the resistors return different values depending on the Vfwd. I would like to get the currents as if there weren't any diodes in the circuit (once the Vfwd threshold was reached). I set Vfwd to 0 and correctly get 2.913034e-01 and 3.039605e-02 for R11 and R12 but no when Vfwd is set to something...

  • Posted a comment on discussion ngspice-users on ngspice

    The simple diode was exactly what I was looking for. It worked fine when using the windows executable but I couldn't get it to run by using the static library that I built myself. I copied the spinit file in the same folder as the my program but it couldn't find the code models from xspice. Any ideas why? That's the program structure I have: Bin/ ngspice.dll program.exe spinit lib/ngspice (all code files) Load the codemodels codemodel ../lib/ngspice/spice2poly.cm codemodel ../lib/ngspice/analog.cm...

  • Posted a comment on discussion ngspice-users on ngspice

    When using the VSWITCH with the shared library on windows, I'm getting an error: Unable to find definition of model. How can I build the shared library and enable set ngbehavior=psa to use the switch model? Thanks in advance

View All

Personal Data

Username:
coop
Joined:
2019-04-18 18:41:39

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB