opentitan icon indicating copy to clipboard operation
opentitan copied to clipboard

[FPGA] Automation Infrastructure

Open tjaychen opened this issue 7 years ago • 4 comments

Hi Philipp, A few of us on our side are starting to think about FPGA automation as part of November's FPGA launch goals.

To that end, we mainly want to first setup a flow where we can on some event trigger, build, program and test the FPGA for correctness. If this all works out, eventually that event trigger can be either a CI indication, or maybe some timed trigger (if we want to do nightly builds and tests).

@moidx mentioned you already have done quite a bit work in this area, so we wanted to sync up to see where is the right place we should plug in?

@rpenugo

tjaychen avatar Sep 18 '19 00:09 tjaychen

@gorusso

tjaychen avatar Sep 25 '19 17:09 tjaychen

+@gkelly

I started porting over the work contributed by @imphil in separate threads:

  • #229 Add SW builds to CI targets
  • #274 Add OpenOCD system test (Verilator) based on pytest

I am currently working on a PR to integrate the system test in CI. After this is done, we can extend the systemtest infrastructure to automate FPGA execution.

Additional changes to test execution may be added once we have a build system in place (see #201).

moidx avatar Sep 26 '19 01:09 moidx

Trying to understand and isolate flows involved here into 2 parts

  1. #354 Flow that takes up-to bitfile loading (based on fusesoc)
  2. Flow that can be used to run a sanity test which I think we can use @moidx systemtest infra to extended to FPGA. target

@moidx does this sound ok ?

rpenugo avatar Oct 05 '19 00:10 rpenugo

If this turns into nightly build, please give consideration to at least archiving the reports for each build (timing, area at a minimum) so we can track progression/regression.

cdgori avatar Oct 07 '19 17:10 cdgori