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

emu: explicitly pass seed to verilator with Verilated::randSeed #128

Merged
merged 3 commits into from
Aug 25, 2023

Conversation

klin02
Copy link
Member

@klin02 klin02 commented Aug 21, 2023

With Verilated::randSeed, we can truly pass seed to Verilator. Otherwise, seeds specified using srand48 will be overwritten by verilator's built-in srand48.
See more details in Verilator-doc "+verilator+rand+seed" and https://github.com/verilator/verilator/blob/master/include/verilated.cpp

@good-circle good-circle changed the title Emu fix bug emu: explicitly pass seed to verilator with Verilated::randSeed Aug 22, 2023
@wakafa1 wakafa1 merged commit 6107002 into OpenXiangShan:master Aug 25, 2023
1 check passed
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.

3 participants