Open Jeremy-Jia opened 1 month ago
Thank you for your report. This issue has been reproduced.
We will fix it latter.
Sorry, this is not a bug.
KunminghuV2Config
is only used for generating verilog of XiangShan with CHI and cannot be used for building emu.
You could:
make verilog EMU_THREADS=8 MFC=1 CONFIG=KunminghuV2Config
to generate verilog for KunminghuV2Config
but not build emu.make emu EMU_THREADS=8 MFC=1
to build emu for default config, which is also Kunminhu V2.Thank you for your reply. Please note that in the XiangShan Makefile:
IMAGE ?= temp
CONFIG ?= DefaultConfig
NUM_CORES ?= 1
MFC ?= 1
The default configuration is DefaultConfig. When I run the command “make emu EMU_THREADS=8 MFC=1”, it initially generates the Verilog code for DefaultConfig, which lacks CHI features. As a result, the emulator uses the Verilog code for DefaultConfig instead of KunminghuV2Config.
And, if I first generate the Verilog code for KunminghuV2Config using “make verilog EMU_THREADS=8 MFC=1 CONFIG=KunminghuV2Config”, this action will be overridden when I subsequently execute “make emu EMU_THREADS=8 MFC=1”.
My previous response might have caused some misunderstanding. Please allow me to clarify:
You could run either make verilog EMU_THREADS=8 MFC=1 CONFIG=KunminghuV2Config
or make emu EMU_THREADS=8 MFC=1
, but not run them sequentially.
At present, our emu infrastructure are not ready for CHI, which means you cannot build emu for XiangShan with CHI (KunminghuV2Config
) by any means. The only workable output of KunminghuV2Config
is verilog.
“At present, our emu infrastructure are not ready for CHI, which means you cannot build emu for XiangShan with CHI (KunminghuV2Config) by any means. The only workable output of KunminghuV2Config is verilog.”
Got it.
Before start
PLEASE MAKE SURE you have done these:
Describe the question
A clear and concise description of your question.
Compile Exception while using "make emu EMU_THREADS=8 MFC=1 CONFIG=KunminghuV2Config", the error message is:
1 targets failed xiangshan[chisel].test.runMain subprocess failed make: *** [Makefile:162: build/rtl/SimTop.v] Error 1
Environment
Operating System: Ubuntu 20.04
gcc version: gcc version 11.2.0 (Ubuntu 11.2.0-19ubuntu1)
mill version: Mill Build Tool version 0.11.1 Java version: 11.0.22, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64 Default locale: en, platform encoding: UTF-8 OS name: "Linux", version: 5.15.146.1-microsoft-standard-WSL2, arch: amd64
The commit log:
commit 5961467fb71810763d53d8d244fbcdfa2b81fa81 (HEAD -> master, origin/master, origin/HEAD) Author: Xiaokun-Pei peixiaokun23z@ict.ac.cn Date: Wed May 15 14:23:12 2024 +0800 HPTW, RVH: add the flush function (#2982)