[test] RISC-V Compliance for Earlgrey
Currently, we run RISC-V compliance tests on Ibex (though on the Ibex repo rather than in the vendored-in copy in OT). However, these tests do not run on the Earlgrey toplevel system; running these tests as part of CI would have caught https://github.com/lowRISC/opentitan/issues/350, for example.
To do this, we will need a toplevel system that can dump the results of the tests from memory; there's a few options for doing this, which boil down to either "dedicated peripheral" or "dump something through UART". I'm not sure how much of this work can be undertaken by software and how much of it is hardware work, though, so I'd appreciate some guidance there.
I recommend you plug @sriyerg and @tjaychen into the conversation, as they've done some top-level C-base testing too.
i actually need to have a closer look at what the compliance tests entail.
On Thu, Oct 10, 2019 at 11:23 AM Scott Johnson [email protected] wrote:
I recommend you plug @sriyerg https://github.com/sriyerg and @tjaychen https://github.com/tjaychen into the conversation, as they've done some top-level C-base testing too.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lowRISC/opentitan/issues/417?email_source=notifications&email_token=AAH2RSX6YEHKM5KUTM6UBT3QN5XILA5CNFSM4I7OZSGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA5JR7I#issuecomment-540711165, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH2RSQZ4ZL3L566RCIGK3DQN5XILANCNFSM4I7OZSGA .
@mcy I took a quick look, and it feels like on the surface we could incorporate this into our FPGA / DV flows. It seems like the main thing we need is to supply a function to initialize UART and later to print it out.
This feels doable...although i'm not sure what the right way is. It looks like ibex is an actual target in the compliance. I"m assuming we can't add top_earlgrey there, so does that mean we would vendor down a copy in OT and go from there?
@asb
CCing @GregAC and @imphil who can input based on their experience with the compliance suite on Ibex.
PR lowRISC/opentitan#485 is addressing this issue.
as PR #485 addressed this issue, can we close this issue @imphil?