OpenCores
no use no use 1/1 no use no use
problem with cycle-accurate simulation
by Jenny1990 on Apr 16, 2012
Jenny1990
Posts: 3
Joined: Dec 6, 2011
Last seen: Jan 6, 2013
hello everyone,

I have installed the systemC,the verilog-perl ,the system-perl and the verilator successfully and test all of them without any error.But when I want to follow the steps in the orpsocv2 user guide of the cycle-accurate simulation,there are some errors.


make[2]: 正����� `/home/hcy/orpsocv2/sim/vlt'
g++ -I. -MMD -I/home/hcy/verilator/include -I/home/hcy/verilator/include/vltstd -DVL_PRINTF=printf -DVM_TRACE=1 -DVM_COVERAGE=0 -fprofile-use -Wcoverage-mismatch -O3 -I/home/hcy/orpsocv2/sim/run/../../bench/sysc/include -I/home/hcy/systemC/systemc-2.2.0/include -c -o OrpsocAccess.o OrpsocAccess.cpp
OrpsocAccess.cpp:43:54: error: Vorpsoc_top_ram_wb__A20_D20_M800000_MB17.h: 没��个�件���
OrpsocAccess.cpp:45:40: error: Vorpsoc_top_ram_wb_b3__pi3.h: 没��个�件���
OrpsocAccess.cpp: In constructor �OrpsocAccess::OrpsocAccess(Vorpsoc_top*)�:
OrpsocAccess.cpp:64: error: invalid use of incomplete type �struct Vorpsoc_top_ram_wb__M800000_MB17�
Vorpsoc_top_orpsoc_top.h:13: error: forward declaration of �struct Vorpsoc_top_ram_wb__M800000_MB17�
OrpsocAccess.cpp: In member function �uint32_t OrpsocAccess::get_mem32(uint32_t)�:
OrpsocAccess.cpp:187: error: invalid use of incomplete type �struct Vorpsoc_top_ram_wb_b3__pi3�
OrpsocAccess.h:44: error: forward declaration of �struct Vorpsoc_top_ram_wb_b3__pi3�
OrpsocAccess.cpp: In member function �uint8_t OrpsocAccess::get_mem8(uint32_t)�:
OrpsocAccess.cpp:206: error: invalid use of incomplete type �struct Vorpsoc_top_ram_wb_b3__pi3�
OrpsocAccess.h:44: error: forward declaration of �struct Vorpsoc_top_ram_wb_b3__pi3�
OrpsocAccess.cpp: In member function �void OrpsocAccess::set_mem32(uint32_t, uint32_t)�:
OrpsocAccess.cpp:235: error: invalid use of incomplete type �struct Vorpsoc_top_ram_wb_b3__pi3�
OrpsocAccess.h:44: error: forward declaration of �struct Vorpsoc_top_ram_wb_b3__pi3�
OrpsocAccess.cpp: In member function �void OrpsocAccess::do_ram_readmemh()�:
OrpsocAccess.cpp:243: error: invalid use of incomplete type �struct Vorpsoc_top_ram_wb_b3__pi3�
OrpsocAccess.h:44: error: forward declaration of �struct Vorpsoc_top_ram_wb_b3__pi3�
make[2]: *** [OrpsocAccess.o] �误 1
make[2]:正�离��� `/home/hcy/orpsocv2/sim/vlt'




It seems like the "vlt" don't include some files.I felt very confused because my partner do the same thing as me with no error at all.

Thanks a lot in advance.

Jenny
RE: problem with cycle-accurate simulation
by Jenny1990 on Apr 16, 2012
Jenny1990
Posts: 3
Joined: Dec 6, 2011
Last seen: Jan 6, 2013
I felt very sorry there are some messy codes because in my ubuntu it is Chinese.Now I reconfigure it.

make[2]: Entering directory `/home/hcy/orpsocv2/sim/vlt'
g++ -I. -MMD -I/home/hcy/verilator/include -I/home/hcy/verilator/include/vltstd -DVL_PRINTF=printf -DVM_TRACE=1 -DVM_COVERAGE=0 -fprofile-use -Wcoverage-mismatch -O3 -I/home/hcy/orpsocv2/sim/run/../../bench/sysc/include -I/home/hcy/systemC/systemc-2.2.0/include -c -o OrpsocAccess.o OrpsocAccess.cpp
OrpsocAccess.cpp:43:54: error: Vorpsoc_top_ram_wb__A20_D20_M800000_MB17.h: No such file or directory
OrpsocAccess.cpp:45:40: error: Vorpsoc_top_ram_wb_b3__pi3.h: No such file or directory
OrpsocAccess.cpp: In constructor �OrpsocAccess::OrpsocAccess(Vorpsoc_top*)�:
OrpsocAccess.cpp:64: error: invalid use of incomplete type �struct Vorpsoc_top_ram_wb__M800000_MB17�
Vorpsoc_top_orpsoc_top.h:13: error: forward declaration of �struct Vorpsoc_top_ram_wb__M800000_MB17�
OrpsocAccess.cpp: In member function �uint32_t OrpsocAccess::get_mem32(uint32_t)�:
OrpsocAccess.cpp:187: error: invalid use of incomplete type �struct Vorpsoc_top_ram_wb_b3__pi3�
OrpsocAccess.h:44: error: forward declaration of �struct Vorpsoc_top_ram_wb_b3__pi3�
OrpsocAccess.cpp: In member function �uint8_t OrpsocAccess::get_mem8(uint32_t)�:
OrpsocAccess.cpp:206: error: invalid use of incomplete type �struct Vorpsoc_top_ram_wb_b3__pi3�
OrpsocAccess.h:44: error: forward declaration of �struct Vorpsoc_top_ram_wb_b3__pi3�
OrpsocAccess.cpp: In member function �void OrpsocAccess::set_mem32(uint32_t, uint32_t)�:
OrpsocAccess.cpp:235: error: invalid use of incomplete type �struct Vorpsoc_top_ram_wb_b3__pi3�
OrpsocAccess.h:44: error: forward declaration of �struct Vorpsoc_top_ram_wb_b3__pi3�
OrpsocAccess.cpp: In member function �void OrpsocAccess::do_ram_readmemh()�:
OrpsocAccess.cpp:243: error: invalid use of incomplete type �struct Vorpsoc_top_ram_wb_b3__pi3�
OrpsocAccess.h:44: error: forward declaration of �struct Vorpsoc_top_ram_wb_b3__pi3�
make[2]: *** [OrpsocAccess.o] Error 1
make[2]: Leaving directory `/home/hcy/orpsocv2/sim/vlt'

Or1200MonitorSC.cpp:(.text+0x5c49): undefined reference to `OrpsocAccess::setGpr(unsigned int, unsigned int)'
Or1200MonitorSC.cpp:(.text+0x5d08): undefined reference to `OrpsocAccess::getGpr(unsigned int)'
Or1200MonitorSC.cpp:(.text+0x5dac): undefined reference to `OrpsocAccess::getGpr(unsigned int)'
Or1200MonitorSC.cpp:(.text+0x5dfa): undefined reference to `OrpsocAccess::getGpr(unsigned int)'
Or1200MonitorSC.cpp:(.text+0x5e12): undefined reference to `OrpsocAccess::getGpr(unsigned int)'
Or1200MonitorSC.cpp:(.text+0x5e3d): undefined reference to `OrpsocAccess::getGpr(unsigned int)'
collect2: ld returned 1 exit status
make[1]: *** [/home/hcy/orpsocv2/sim/run/../../sim/vlt/Vorpsoc_top] Error 1
make[1]: Leaving directory `/home/hcy/orpsocv2/sim/run'
RE: problem with cycle-accurate simulation
by olof on Apr 17, 2012
olof
Posts: 218
Joined: Feb 10, 2010
Last seen: Dec 17, 2018
Hi Jenny,

Can you give us the command line you used to run the tests. That will make it easier to reproduce the issue here

--
Olof Kindgren
______________________________________________
ORSoC
Website: www.orsoc.se
Email: olof.kindgren@orsoc.se
______________________________________________
FPGA, ASIC, DSP - embedded SoC design
RE: problem with cycle-accurate simulation
by Jenny1990 on Apr 17, 2012
Jenny1990
Posts: 3
Joined: Dec 6, 2011
Last seen: Jan 6, 2013
I type in "make vlt-tests" under the /home/hcy/orpsocv2/sim/run directory.

And I found that under my "vlt" directory there are some files similar to the missing files.Their names are "Vorpsoc_top_ram_wb_b3__M800000_MB17.h" and "Vorpsoc_top_ram_wb__M800000_MB17.h".

So I once tried to modify the files' name in the "OrpsocAccess.cpp",but still express me different errors.
no use no use 1/1 no use no use
© copyright 1999-2026 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.