Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Waveform generation error #4170

Open
3 tasks done
Liujiaqi-jlu opened this issue Jan 13, 2025 · 5 comments
Open
3 tasks done

Waveform generation error #4170

Liujiaqi-jlu opened this issue Jan 13, 2025 · 5 comments
Labels
problem Problem requiring help

Comments

@Liujiaqi-jlu
Copy link

Liujiaqi-jlu commented Jan 13, 2025

Before start

  • I have read the XiangShan Documents. 我已经阅读过香山文档。
  • I have searched the previous issues and did not find anything relevant. 我已经搜索过之前的 issue,并没有找到相关的。
  • I have searched the previous discussions and did not find anything relevant. 我已经搜索过之前的 discussions,并没有找到相关的。

Describe you problem

你好,我用的是v2.2的docker镜像版本,在生成波形的时候出现下面的报错,请问这是什么原因
[TRANSLATION]
Hello, I am using the v2.2 Docker image version, and I encountered the following error while generating the waveform. Could you please help me understand the reason?

dc5e1409-4dc4-45eb-862b-0a4b336477d8
他说无法打开,是有什么东西漏下了吗
[TRANSLATION]
It said it couldn't be opened. Did I miss something?

What did you do before

1

Environment

  • XiangShan branch:
  • XiangShan commit id:
  • NEMU commit id:
  • SPIKE commit id:
  • Operating System:
  • gcc version:
  • mill version:
  • java version:

Additional context

No response

@Liujiaqi-jlu Liujiaqi-jlu added the problem Problem requiring help label Jan 13, 2025
@NewPaulWalker
Copy link
Contributor

你好,我认为是你的命令输入有问题,从你输入的命令上看,emu 希望运行的 image 应该是 “ready-to-run/coremark-2-iteration.bin”,但是从你提供的报错信息上看,image 被指定为了"ready-to-run/coremark-2-iteration.bin--dump-wave",请确保 “ready-to-run/coremark-2-iteration.bin” 和 "--dump-wave" 中间有空格

[TRANSLATION]
Hello, I think there might be an issue with your command input. Based on the command you provided, the emulator expects the image to be "ready-to-run/coremark-2-iteration.bin." However, from the error message you provided, the image is specified as "ready-to-run/coremark-2-iteration.bin--dump-wave." Please ensure there is a space between "ready-to-run/coremark-2-iteration.bin" and "--dump-wave."

@NewPaulWalker NewPaulWalker changed the title 生成波形错误 Waveform generation error Jan 13, 2025
@Liujiaqi-jlu
Copy link
Author

Liujiaqi-jlu commented Jan 13, 2025

你好,我认为是你的命令输入有问题,从你输入的命令上看,emu 希望运行的 image 应该是 “ready-to-run/coremark-2-iteration.bin”,但是从你提供的报错信息上看,image 被指定为了"ready-to-run/coremark-2-iteration.bin--dump-wave",请确保 “ready-to-run/coremark-2-iteration.bin” 和 "--dump-wave" 中间有空格

[TRANSLATION] Hello, I think there might be an issue with your command input. Based on the command you provided, the emulator expects the image to be "ready-to-run/coremark-2-iteration.bin." However, from the error message you provided, the image is specified as "ready-to-run/coremark-2-iteration.bin--dump-wave." Please ensure there is a space between "ready-to-run/coremark-2-iteration.bin" and "--dump-wave."

谢谢,确实是命令的问题,现在已经解决。但是有下面的问题
[TRANSLATION]
Thank you, it was indeed an issue with the command, and it has been resolved now. However, there is another issue below.

a5029a68-4856-40c9-ab22-ebc1363bfbb5
我看了一下他提到的这个动态库是在ready-to-run这个文件夹下面的
[TRANSLATION]
I checked, and the mentioned dynamic library is located in the ready-to-run folder.
9ff096c6-8ce5-4b55-a956-c3d72fb38a0c

@NewPaulWalker
Copy link
Contributor

riscv64-nemu-interpreter-so 是用来和 XiangShan 仿真程序 emu 一起做差分测试的动态连接库。你可以在运行 emu 时指定 “--no-diff” 来关闭差分测试,或者 “--diff=PATH” 来指定动态链接库的路径。更多的用法可以运行 “./build/emu -h”来查看。这里因为没有显示指定动态链接库的路径,所以 emu 尝试了一个可能的路径,但是在该路径下没有对应的库文件,因此发生了错误
[TRANSLATION]
The riscv64-nemu-interpreter-so is a dynamically linked library used for differential testing with the XiangShan simulation program emu. You can disable differential testing by specifying --no-diff when running emu, or use --diff=PATH to specify the path to the dynamic library. For more usage options, you can run ./build/emu -h to check.
In this case, since the path to the dynamic library was not explicitly specified, emu attempted a possible path but couldn't find the corresponding library file at that location.

@NewPaulWalker
Copy link
Contributor

Please try
./build/emu -i ./ready-to-run/coremark-2-iteration.bin --diff ./ready-to-run/riscv64-nemu-interpreter-so --dump-wave -b 10000 -e 11000
or
./build/emu -i ./ready-to-run/coremark-2-iteration.bin --no-diff --dump-wave -b 10000 -e 11000

@Liujiaqi-jlu
Copy link
Author

Please try ./build/emu -i ./ready-to-run/coremark-2-iteration.bin --diff ./ready-to-run/riscv64-nemu-interpreter-so --dump-wave -b 10000 -e 11000 or ./build/emu -i ./ready-to-run/coremark-2-iteration.bin --no-diff --dump-wave -b 10000 -e 11000

好的谢谢,问题已经解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Problem requiring help
Projects
None yet
Development

No branches or pull requests

2 participants