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

[BUG] Can't find export or definition for 'read_section_sv' and other used functions causing Fatal Errors when not found in any .so included with Questasim #2744

Open
1 task done
ahmedelalfy94 opened this issue Jan 27, 2025 · 0 comments
Labels
notCV32A65X It is not an CV32A65X issue Type:Bug For bugs in the RTL, Documentation, Verification environment or Tool and Build system

Comments

@ahmedelalfy94
Copy link

ahmedelalfy94 commented Jan 27, 2025

Is there an existing CVA6 bug for this?

  • I have searched the existing bug issues

Bug Description

There is some DPI functions that are not declared in either
libfesvr disasm libcustomext libfdt libriscv libsoftfloat or uvm_dpi.so related to questa
for the below functions:

  • 'debug_tick'
  • 'get_section'
  • 'jtag_tick'
  • 'read_elf'
  • 'read_section_sv'
  • 'read_symbol'

While running test questa-testharness_sim/rv64ui-v-addiw.cv64a6_imafdc_sv39 the following FATAL error happened
Fatal: (vsim-160) /workspace/cva6/corev_apu/tb/ariane_tb.sv(28): Null foreign function pointer encountered when calling 'read_elf'

I think if they are not essentially needed you can reduce the fatal message into suppressible one.

Update: I found read_elf, but still can't find 'read_symbol' or 'read_section_sv' Need there definitions.

@ahmedelalfy94 ahmedelalfy94 added the Type:Bug For bugs in the RTL, Documentation, Verification environment or Tool and Build system label Jan 27, 2025
@JeanRochCoulon JeanRochCoulon added the notCV32A65X It is not an CV32A65X issue label Jan 28, 2025
@ahmedelalfy94 ahmedelalfy94 changed the title [BUG] Fatal error when using Questasim ariane_tb.sv(28): Null foreign function pointer encountered when calling 'read_elf' [BUG] Can't find export or definition for 'read_section_sv' and other used functions causing Fatal Errors when not found in any .so included with Questasim Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notCV32A65X It is not an CV32A65X issue Type:Bug For bugs in the RTL, Documentation, Verification environment or Tool and Build system
Projects
None yet
Development

No branches or pull requests

2 participants