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

difftest: move declaration of extern func to header #490

Merged
merged 1 commit into from
Nov 25, 2024
Merged

Conversation

klin02
Copy link
Member

@klin02 klin02 commented Oct 31, 2024

Previous we declare and implement extern func in cpp file directly, and call by import DPIC in verilog or another extern declaration in other cpp files.

However, when supporting gsim, too many extern declaration and calls in different files make it hard to link and locate, causing undefined reference error.

This change move declaration of extern func to header, add we will include header while generating extern-module func.

Previous we declare and implement extern func in cpp file directly,
and call by import DPIC in verilog or another extern declaration
in other cpp files.

However, when supporting gsim, too many extern declaration and calls
in different files make it hard to link and locate, causing undefined
reference error.

This change move declaration of extern func to header, add we will
include header while generating extern-module func.
@poemonsense poemonsense merged commit c211135 into master Nov 25, 2024
5 checks passed
@poemonsense poemonsense deleted the gsim-header branch November 25, 2024 07:52
Tang-Haojin pushed a commit that referenced this pull request Nov 25, 2024
Previous we declare and implement extern func in cpp file directly,
and call by import DPIC in verilog or another extern declaration
in other cpp files.

However, when supporting gsim, too many extern declaration and calls
in different files make it hard to link and locate, causing undefined
reference error.

This change move declaration of extern func to header, add we will
include header while generating extern-module func.
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

Successfully merging this pull request may close these issues.

2 participants