You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[TRANSLATION] I have a question regarding CHI version simulation:
First, I executed make verilog CONFIG=XSNoCTopConfig MFC=1 under the /xiangshan/ path to generate the CHI protocol RTL. I can see the CHI interface in XSTop.sv, as shown in Figure 1.
Then, I executed make emu -j32 EMU_TRACE=fst, and I noticed that the top-level signals in XSTop.sv have changed, as shown in Figure 2. Do I need to add other parameters for this step?
make verilog 和 make emu 两个步骤的目标不同,前者生成用于综合的 Verilog 代码,后者生成用于仿真的可执行文件。两者没有流程上的关联,不共用同一套 Verilog。
如果您想针对 XSNoCTopConfig 这个 config 进行软件仿真,请直接在 make emu 时加入 CONFIG=XSNoCTopConfig 参数。
make verilog and make emu has different target. make verilog is used for generating Synthesizable Verilog codes. make emu is used for generating software emulation excetuable file. There is no procedural connection between them and they uses different verilog codes.
If you want to emualte XSNoCTopConfig, please add CONFIG=XSNoCTopConfig in command make emu.
cebarobot
changed the title
请教一下关于chi版本仿真的一个问题
Question about emulation of the CHI version
Aug 12, 2024
After emulation using the emulation file generated by make emu CONFIG=XSNoCTopConfig MFC=1, The code in the waveform is not consistent with the code generated by make verilog CONFIG=XSNoCTopConfig MFC=1 (code under the build/rtl/ path)? Is this reasonable?
After emulation using the emulation file generated by make emu CONFIG=XSNoCTopConfig MFC=1, The code in the waveform is not consistent with the code generated by make verilog CONFIG=XSNoCTopConfig MFC=1 (code under the build/rtl/ path)? Is this reasonable?
make verilog 生成用于综合的 Verilog 代码。make emu 通过 make sim-verilog生成用于仿真的 Verilog 代码,而后再通过 verilator 生成可执行文件。两者最终目标不同,Verilog 也是不同的。
make verilog generates Verilog codes for synthesis. make emu generates Verilog codes for emulation through make sim-verilog, then generates executable file by verilator. They have different purpose and use different Verilog.
Before start
Describe you problem
请教一下关于chi版本仿真的一个问题:
1、首先我在/xiangshan/路径下执行了make verilog CONFIG=XSNoCTopConfig MFC=1生成了CHI协议的rtl,我在XSTop.sv中可以看到CHI接口,如图1所示;
2、然后我执行make eumu -j32 EMU_TRACE=fst,我发现XSTop.sv的顶层信号变了,如图2所示。这一步是不是需要加其他参数?
[TRANSLATION] I have a question regarding CHI version simulation:
First, I executed make verilog CONFIG=XSNoCTopConfig MFC=1 under the /xiangshan/ path to generate the CHI protocol RTL. I can see the CHI interface in XSTop.sv, as shown in Figure 1.
Then, I executed make emu -j32 EMU_TRACE=fst, and I noticed that the top-level signals in XSTop.sv have changed, as shown in Figure 2. Do I need to add other parameters for this step?
图1
图2
What did you do before
按照https://xiangshan-doc.readthedocs.io/zh-cn/latest/tools/xsenv/所描述步骤进行了环境的搭建
[Translation] According to https://xiangshan-doc.readthedocs.io/zh-cn/latest/tools/xsenv/ The described steps have been used to set up the environment
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: