Waveform Diff Testing#266
Closed
Nikil-Shyamsunder wants to merge 6 commits into
Closed
Conversation
87c8807 to
7736659
Compare
* multi-protocol lowering for concrete traces * nfa to dfa * fix bug in assignment merge semantics * remove done from everything other than last protocol instance * graphs are too hard to read -only serialize nodes reachable and dont include edges that are false * testing * fix the semantics of assignments * some cleanup * reorg * fix the assignment semantics more * debug wishbone internal assert issue * clean up the lowerin * improve one of the unorered assignment semantics tests
switched interpreter to output diagnostics on stderr and base errors + ascii wveform on stdout janky thing to keep monitor on stdout only by specifying the err/out semantics in the test gen
7736659 to
21a5b98
Compare
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.
Do not merge until #264
Addressing #253. Most of the diff is the new
runt runt/waveformconfig, the new ASCII output .expect files, and a bunch of shifts in the test because I removed the typechecking noise. Here are the main interesting things:graph_interp/main.rsandinterp/main.rs, add support for printing the ASCII waveform output with--ascii-waveformwaveformstate which is just aFxHashMap<PortId, Vec<BitVecValue>>. An output isDontCareif any of its combinationally dependent inputs isDontCare. We do the same logic ingraph_interpreter.rs.Diffing AST and Graph Interp
kexcuted successfully/failed") , graph serialization with--graphout, and ASCII waveforms go to stdout. This applies to interpreter/graph-interpreter only, not to monitor/bi. I then switched the runt targets to use the binaries directly instead ofcargo run, so that stderr is clean with only the error messages (it doesn't have the noise fromcargo run. This way, the waveform tests can check the trace results are the same and the waveform is the same, without dealing with warning or error messages being different. It also removes all the annoying typechecking warnings from the diff, as in issue Disable Type Inference Info in test/serialization outputs #263.