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

UART DPI error in Vivado Version 2022.2 #320

Open
mertkorkut opened this issue Jul 28, 2023 · 1 comment
Open

UART DPI error in Vivado Version 2022.2 #320

mertkorkut opened this issue Jul 28, 2023 · 1 comment

Comments

@mertkorkut
Copy link

I get the following error when I run 'make all-vivado' command in Vivado version 2022.2 without any changes made.

Time resolution is 1 ps
run -all

core_v_mcu_tb.qspi.mem_access @                    0 : NOTE : Load memory with Initial content

core_v_mcu_tb.qspi.mem_access @                    0 : NOTE : Initial Load End
core_v_mcu_tb.uart_0 @ 0: uart0 Baud =     4608000 freq =   250000000 ccps =          54
core_v_mcu_tb.uart_0 @ 0: Pseudo UART is  enabled
FATAL_ERROR: Vivado Simulator kernel has encounted an exception from DPI C function: uartdpi_create(). Please correct.
Time: 0 ps  Iteration: 0  Process: /core_v_mcu_tb/uart_0/Initial54_179
  File: /media/resyslab/big/core-v-mcu_works/build/openhwgroup.org_systems_core-v-mcu_0/sim-xsim/src/openhwgroup.org_systems_core-v-mcu_0/tb/uartdpi/uartdpi.sv

HDL Line: /media/resyslab/big/core-v-mcu_works/build/openhwgroup.org_systems_core-v-mcu_0/sim-xsim/src/openhwgroup.org_ip_apb2per_0/apb2per.sv:155
exit

What is the Vivado version that was originally tested on?

@MikeOpenHWGroup
Copy link
Member

Hi @mertkorkut, thanks for your interest in the CORE-V-MCU. Unfortunately, the Vivado simulator does not support all the code constructs in the MCU's RTL. I keep hoping one day it will. In the meantime, I will push in an update to the vivado targets to make this obvious to users.

For RTL simulation I suggest you try Verilator, v5.008 or newer.

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

No branches or pull requests

2 participants