Conversation
ngernest
marked this pull request as ready for review
August 24, 2026 22:50
ngernest
marked this pull request as draft
August 25, 2026 13:36
ngernest
marked this pull request as ready for review
August 25, 2026 22:31
ngernest
marked this pull request as draft
August 25, 2026 22:37
ngernest
marked this pull request as ready for review
August 25, 2026 23:15
Contributor
Author
|
Per our discussion today, the protocol has been rewritten so that it now branches on the value of // trace 0
trace {
reset(); // [time: 0ns -> 25ns]
idle(); // [time: 25ns -> 50ns]
idle(); // [time: 50ns -> 75ns]
split_word(0xabcdabcdabcdabcd, 0x1f, 0x1); // [time: 75ns -> 200ns]
}and fails on the buggy waveform: // trace 0
trace {
reset(); // [time: 0ns -> 25ns]
idle(); // [time: 25ns -> 50ns]
idle(); // [time: 50ns -> 75ns]
}
error: [split_word@3] executing step 5 of the transaction: 0 != 1
┌─ tests/fpga-debugging/axis-adapter-s3/s3.prot:237:45
│
237 │ assert_eq(keep[5], 1'b1);
│ ^^^^^^^^^^^^^^^^^^^^^^^^^ [split_word@3] executing step 5 of the transaction: 0 != 1We can also run the interpreter and drive the fixed DUT ( trace {
reset();
idle();
// Same transaction with the same input data, as in `s3_fixed.fst` (waveform from Brave New World artifact)
split_word(0xabcdabcdabcdabcd, 0x1f, 0b1);
} |
Contributor
Author
|
When the DUT is emitting output bytes, for the
Note: when |
Contributor
Author
|
Pushed an alternate version of the protocol ( |
ngernest
marked this pull request as draft
August 26, 2026 20:46
ekiwi
marked this pull request as ready for review
August 27, 2026 15:58
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.
This PR rewrites the protocol for the Brave New World AXI-Stream adapter bug (
axis-adapter-s3) so that the BI fails on the buggy waveform and succeeds on the updated waveform using a single new.protfile (s3.prot). (I've deleted the old.protfiles, since they were missing some pins)The DUT is an adapter which converts 64-bit input data word into 8-bit output data chunks, emitted over multiple clock cycles. I drew this diagram below to figure out the directions of the pins. The DUT accepts 64-bit data from the environment as input, and emits 8-bit data as output. The
tkeepsignal is a bit-mask indicating which bytes of the correspondingtdatasignal are meaningful, and thelastsignal is 1 if this is the last word of a packet.In the new
.protfile, besides the usualidle/resettransactions, we also have:accept_word: the DUT accepts a 64-bit input data word from the environmentemit_byte: the DUT emits 8-bit data as output (tlast = 0)emit_last_byte: Likeemit_byte, butlast = 1(last byte of a packet)On the fixed waveform, the BI infers a trace successfully:
And on the buggy waveform, the BI reports an error for all 5 protocols: