• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. Verilog instantiating SystemC (generated using Verilator...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 65
  • Views 14475
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Verilog instantiating SystemC (generated using Verilator). irun error: Could not load SystemC model library.

ninadpachpute
ninadpachpute over 8 years ago

Hello,

We are trying to instantiate SystemC module generated using Verilator tool and simulate using irun.

We have a sample counter DUT and we are running 3 configurations.

(1) Pure Verilog

There is top.v, dut.v and a small piece of code for stimulus in top.v. This is for reference.

(2) dut.v converted manually to SystemC dut.cpp 

This compiles and runs fine.

(3) dut. converted using Verilator

This is where we encounter following error. Not sure why this error was not encountered in configuration (2) where we have a SystemC module manually written.

Error:

TOOL: ncsc 13.20-s010
ncsc C++ parameters:
ncsc -COMPILER $CDSROOT/tools/cdsgcc/gcc/4.4/bin/g++
-f ./INCA_libs/irun.lnx86.13.20.nc/ncsc_run/ncsc_obj/ncsc.args
-MANUAL
-CFLAGS "-DNCSC
-I$CDSROOT/tools/systemc/include_pch
-I$CDSROOT/tools/tbsc/include
-I$CDSROOT/tools/vic/include
-I$CDSROOT/tools/methodology/OVM/CDNS-2.1.2/sc/src
-I$CDSROOT/tools/methodology/UVM/CDNS-1.1d/sc/sc
-I$CDSROOT/tools/methodology/UVM/CDNS-1.1d/ml/sc
-I$CDSROOT/tools/systemc/include/cci
-I$CDSROOT/tools/systemc/include/factory
-I$CDSROOT/tools/systemc/include/tlm2
-c
-x c++ -m32 -Wall
-I${VERILATOR_INCDIR}
-DVERILATED
-I$CDSROOT/tools/include
-I$CDSROOT/tools/inca/include"

Caching library 'worklib' ....... Done

Elaborating the design hierarchy:
ncelab: *F,SCILDD: Could not load SystemC model library ./INCA_libs/irun.lnx86.13.20.nc/librun (./INCA_libs/irun.lnx86.13.20.nc/librun.so: undefined symbol: _Z8vl_fatalPKciS0_S0_).
irun: *E,ELBERR: Error during elaboration (status 3), exiting.
TOOL: irun 13.20-s010: Exiting on Oct 19, 2016 at 10:33:06 IST (total: 00:00:39)

The irun command we are using is -

$ irun
+define+SYSTEMC
-DVERILATED
top.v
dut.v
-sysc
dut.cpp
-access +rcw
-l log.verilator
-I${VERILATOR_INCDIR}
-L${SYSTEMC_LIBDIR}

  • Cancel
Parents
  • StephenH
    StephenH over 8 years ago
    The missing symbol expands to:
    vl_fatal(char const*, int, char const*, char const*)
    Though I'm not sure, that looks like it might be a Verilator library function, have you forgotten to link in the Verilator libraries?
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • StephenH
    StephenH over 8 years ago
    The missing symbol expands to:
    vl_fatal(char const*, int, char const*, char const*)
    Though I'm not sure, that looks like it might be a Verilator library function, have you forgotten to link in the Verilator libraries?
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information