Repository navigation
SV parser keeps the sensitivity list; lowering picks the reset kind from it (reset unit 3) - #209
Open
junjihashimoto wants to merge 6 commits into
Open
junjihashimoto wants to merge 6 commits into
junjihashimoto wants to merge 6 commits into
Conversation
… classifies it once into (clock, reset kind); emitter mirror prints the same list
…istinct from reset)
…8 guard flipped; Ch07c and EmitAst notes updated
…changed, 0 refused
…authenticated release lookups hit the per-IP API rate limit; runs 47242484498 attempts 1-2)
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Unit 3 of Issue sparkle-ved-reset. The design is
notes/ved/VED-RESET-PARSER.mdrev 2, approved at f3498fd.Fix. The parser kept only the first edge of
always @(...), and lowering made every register with a detected resetifasynchronous. A synchronous-reset register was therefore read back as asynchronous.Change.
alwaysBlockholds the whole sensitivity list, and the parser keeps every edge.posedgeclock;negedgeclock,*mixed with edges, an async event on a memory block, or an ambiguous same-name clock/reset.RoundtripProofcarries the reset kind.Ex8_Roundtripsame-tree#guardis flipped; Ch07c and theEmitAstnote are updated.Controls.
Tests/SVParser/ResetKindCheck.lean, 32 cases, accepted and refused, with the refusal messages checked.Corpus. The XiangShan CI corpus (52 files) round-trips 52/52 before and after. 0 files changed and 0 are refused;
notes/ved/VED-RESET-PARSER-corpus.mdexplains why: the corpus has only asyncposedge clock or posedge resetlists, clock-only blocks without a reset, and SRAM macros.Out of scope: the default 0 init for registers missing from the reset branch, and general SV equivalence.
CI fix (0c775984):
xiangshan-roundtrip.ymlpassesgithub-tokentosetup-oss-cad-suite. Without it, the action looked up releases unauthenticated, hit the per-IP API rate limit and failed the gate twice on this PR ("Unable to get download URL").