TheSystemDevelopmentKit / inverter

This is a very simple example of a TheSDK Entity submodule
0 stars 1 forks source link

ngspice simulation fails on a fresh thesdk_template v1.8 #17

Closed chiplet closed 1 year ago

chiplet commented 2 years ago

I just cloned a fresh thesdk_template v1.8 and the inverter simulation fails with the following output:

Click to expand ``` $ ./configure && make Generating Makefile cd /home/pro/a-core/vhirvone/sydekick-playground/Entities/inverter/inverter && \ python3 __init__.py Home of TheSDK is /home/pro/a-core/vhirvone/sydekick-playground Config file of TheSDK is /home/pro/a-core/vhirvone/sydekick-playground/TheSDK.config Adding /home/pro/a-core/vhirvone/sydekick-playground/Entities/ads_template to system path Adding /home/pro/a-core/vhirvone/sydekick-playground/Entities/inverter to system path Adding /home/pro/a-core/vhirvone/sydekick-playground/Entities/ads to system path Adding /home/pro/a-core/vhirvone/sydekick-playground/Entities/thesdk_helpers to system path Adding /home/pro/a-core/vhirvone/sydekick-playground/Entities/register_template to system path Adding /home/pro/a-core/vhirvone/sydekick-playground/Entities/inverter_testbench to system path Adding /home/pro/a-core/vhirvone/sydekick-playground/Entities/rtl to system path Adding /home/pro/a-core/vhirvone/sydekick-playground/Entities/inverter_tests to system path Adding /home/pro/a-core/vhirvone/sydekick-playground/Entities/myentity to system path Adding /home/pro/a-core/vhirvone/sydekick-playground/Entities/spice to system path Setting default logfile /tmp/TheSDK_tmpaj69282i_vhirvone_202208101109.log GLOBALS[LSFSUBMISSION]='bsub -K' GLOBALS[LSFINTERACTIVE]='bsub -I' 11:09:17 [INFO] verilog_module: Initialized logging in /tmp/TheSDK_tmpaj69282i_vhirvone_202208101109.log 11:09:17 [INFO] verilog_module: /home/pro/a-core/vhirvone/sydekick-playground/Entities/inverter/sv/inverter.sv 11:09:17 [INFO] inverter: Initializing inverter 11:09:17 [INFO] inverter: Initializing inverter 11:09:17 [INFO] inverter: Creating ./simulations/ngspice/20220810110917_tmpg9nntf42 11:09:17 [WARNING] testbench: Global TheSDK variable ELDOLIBFILE not set. 11:09:17 [INFO] inverter: Enabling multithreading 'set num_threads=2'. 11:09:17 [INFO] inverter: Running external command bsub -K -o ./simulations/ngspice/20220810110917_tmpg9nntf42/bsublog.txt ngspice -b ./simulations/ngspice/20220810110917_tmpg9nntf42/tb_inverter.ngcir Job <163463> is submitted to default queue . <> <> <> 11:09:23 [ERROR] inverter: Simulator (ngspice) returned non-zero exit code. grep: /home/pro/a-core/vhirvone/sydekick-playground/Entities/inverter/simulations/ngspice/20220810110917_tmpg9nntf42/tb_inverter.print: No such file or directory grep: /home/pro/a-core/vhirvone/sydekick-playground/Entities/inverter/simulations/ngspice/20220810110917_tmpg9nntf42/tb_inverter.print: No such file or directory grep: /home/pro/a-core/vhirvone/sydekick-playground/Entities/inverter/simulations/ngspice/20220810110917_tmpg9nntf42/tb_inverter.print: No such file or directory grep: /home/pro/a-core/vhirvone/sydekick-playground/Entities/inverter/simulations/ngspice/20220810110917_tmpg9nntf42/tb_inverter.print: No such file or directory grep: /home/pro/a-core/vhirvone/sydekick-playground/Entities/inverter/simulations/ngspice/20220810110917_tmpg9nntf42/tb_inverter.print: No such file or directory 11:09:33 [FATAL] spice_iofile: .print file at ./simulations/ngspice/20220810110917_tmpg9nntf42/tb_inverter.print doesn't exist! Quitting due to fatal error in spice_iofile ```
chiplet commented 2 years ago

Seems like use ngspice is missing from sourceme.csh in thesdk_template.

mkosunen commented 2 years ago

'use' is Aalto specific, but I think it can be added as there is a check if 'use' exists, and if it does it will run the use scripts. otherwise it will just prínt a reminder to add the software to path. Current releas cndidate branch is 1.9_RC.

mkosunen commented 1 year ago

I think this can be closed. We could write the tests for availability of the software as part of the simulator packages.