-
Notifications
You must be signed in to change notification settings - Fork 685
Fix --x-initial and --x-assign random stability (#2662) #5958
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
095eefc
x rand test
toddstrader c2549d1
POC: VL_RAND_RESET PRNG stability
toddstrader f0005ca
runtime scope hashing -- WIP
toddstrader 63e2e68
split rand reset into scoped and not
toddstrader 8f740ca
format
toddstrader 228a7c2
Handle classes
toddstrader 76806e4
vltmt
toddstrader 30434fb
VL_MT_SAFE
toddstrader fba7ab5
cleanup
toddstrader d53da10
remove xtemp initial assign
toddstrader 31a388a
AstRand::m_reset rip out
toddstrader 52ba867
fix rand initial
toddstrader 5ad37ec
use --x-assign for XTEMP reset
toddstrader 02925b3
this / vlSelf
toddstrader c2a5052
fix t_debug_emitv
toddstrader df85809
py fix
toddstrader cfb74a4
CR
toddstrader 8d691d5
golden
toddstrader 4680ade
unsafe
toddstrader 2189af1
fallthrough
toddstrader 8efb24b
CR
toddstrader File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
cleanup
- Loading branch information
commit fba7ab56aff6a07eccd0a5696cac8035e517fec0
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C++ "Hash functions are only required to produce the same result for the same input within a single execution of a program". So use VString functions instead, making a new one if needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a bummer.
I dropped a hash function in
V3String
and also the runtime library. Is there something better to do here? I don't see any hash functions already associated withVString
. There is a SHA256 in there, but it speaks about 64B blocks and I don't think that's what we want for this application. There's alsoV3Hash
but that is intrinsically 32b. Also, is there a reasonable way to share code between the compiler and the runtime? I'm not seeing any examples.