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

Ask a question related to Ibex, behavior simulation error in Vivado #2065

Open
twyayaya opened this issue Jul 31, 2023 · 0 comments
Open

Ask a question related to Ibex, behavior simulation error in Vivado #2065

twyayaya opened this issue Jul 31, 2023 · 0 comments
Labels
Type:Question Questions

Comments

@twyayaya
Copy link

Hello, recently I have been trying to generate a .xclbin file using Vitis and Vivado, using ibex as the kernel code.

During this process, I encountered some errors in Vivado. Initially, I ran the behavior simulation using only the files under the ibex-master/rtl directory, with Ibex_top.sv as the top module.

However, Vivado showed errors indicating that some package files were missing. To resolve this, I included all the files from the directories where those missing files were located as sources for running the behavior simulation. Based on the error messages, I selected the following directory files to use as my source:

ibex-master\rtl\
ibex-master\vendor\lowrisc_ip\ip\prim\rtl\
ibex-master\dv\uvm\core_ibex\common\prim\
ibex-master\vendor\lowrisc_ip\ip\prim_generic\rtl\
ibex-master\vendor\lowrisc_ip\ip\prim_xilinx\rtl\
dv_fcov_macros.svh

After including these files, Vivado's messages did not show any missing files, but the error message indicated issues with a few lines in my xsim_3.c file, like this:

xsim.dir/code_tb_behav/obj/xsim_3.c:140:25: error: expected initializer before ‘.’ token
int gen_prefetch_buffer.simutil_get_scramble_key(svBitVecVal arg0[SV_PACKED_DATA_NELEMS(128)])

As xsim_3.c is automatically generated by Vivado, I am now considering the possibility that some of the sources I selected might be incorrect, leading to this error.

My Environment

EDA tool and version:

Vivado 2020.2

Operating system:

Ubuntu Linux 18.04

Version of the Ibex source code:

@twyayaya twyayaya added the Type:Question Questions label Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type:Question Questions
Projects
None yet
Development

No branches or pull requests

1 participant