Closed wyz-icer closed 8 months ago
首先,您的机器上缺库,请通过 apt 安装它们。 First, your machine is lack of some libraries. Please use apt to install them.
apt-get install zlib1g-dev sqlite3 libsqlite3-dev
其次,VCS 对 gcc 版本非常敏感。请先确保 VCS 在您的机器上可以正常运行,再尝试编译 VCS 版的香山仿真程序。 Second, VCS are indeed sensitive to the gcc version. Please make sure vcs can run properly first, then try to build vcs version of XiangShan emulator.
非常感谢!
另外,通过生成的simv 运行case 如何指定波形格式
[TRANSLATION] Thanks a lot!
Dependencies have been installed; 2. VCS and GCC can compile normally. In addition, how to specify the waveform format when running a case with the generated simv?
./build/simv +workload=ready-to-run/microbench.bin +dump-wave +no-diff +max-cycles=10000
Chronologic VCS simulator copyright 1991-2020
Contains Synopsys proprietary information.
Compiler version Q-2020.03-SP2-7_Full64; Runtime version Q-2020.03-SP2-7_Full64; Jan 15 09:10 2024
unknown wave file format, want [vpd, fsdb] but:
请尝试将 +dump-wave
参数换成 +dump-wave=vpd
或 +dump-wave=fsdb
。
Please try to replace +dump-wave
with +dump-wave=vpd
or +dump-wave=fsdb
.
diff --git a/vcs.mk b/vcs.mk
index d3d04527..fb5d25f8 100644
--- a/vcs.mk
+++ b/vcs.mk
# if fsdb is considered
-# CONSIDER_FSDB ?= 0
+CONSIDER_FSDB ?= 1
ifeq ($(CONSIDER_FSDB),1)
EXTRA = +define+CONSIDER_FSDB
感谢您的反馈。您应该可以在 make
的时候直接添加 CONSIDER_FSDB=1
参数,这样不需要修改 Makefile。
Thank you for your feedback. You could add CONSIDER_FSDB=1
when make
, without modifying Makefile.
好的,谢谢!
使用VCS进行仿真时报错如下: Got an error when trying to use vcs to simulator. (log err 贴在环境配置下) (Log err is under environment)
环境配置如下: environment:
master版本: master version:
vcs版本: vcs version:
GCC版本: gcc version:
运行命令: commands:
log err Info: