[FPGA] Checked in bit files
During a discuss on November FPGA launch goals, a couple of questions came up
- Do we want to have a nightly process of building FPGA images? If we have a method to validate these images in an automated fashion, should we also check-in these images with a time-stamp somewhere?
- Should we provide a method for someone to update the FPGA without the need for Vivado tools?
Both these questions came up in the context of whether we will have users who just want to flash the FPGA and begin work, without having to go through the trouble of installing all the right tools to build it.
I personally think that while these things might be nice, it can be left for a post-launch goal.
The recommended method of accomplishing the second bullet point would be to configure the FPGA to boot from a storage device (USB / SD), so as long as the bits file is available, there is no need for a user to setup the vivado tool chains.
@sjgitty @rpenugo @moidx @msfschaffner
Let's separate things out here a bit. We might for instance provide a ready-to-use bitfile at the time of public launch, but not have this generated in an automated fashion on a daily or per-commit basis. I agree that this isn't essential for launch, but it's handy to have a known-good bitstream.
I'd actually prioritise the single known-good bitstream over the nightly build. It's useful to have something that we 100% know should work as desired that we can point people to.
I agree with Alex that for the public launch it would probably be better to just upload a single good bitstream, since the nightly build may be unstable (and the process is less controllable).
@asb do you intend to use the release feature from GitHub to link artifacts?
Yes, we'd use github releases most likely.
sounds good! Alex do you know if there's a tracking list somewhere of things to do for launch? If there is, we can add this on and close this issue down (maybe it's just another github issue)
On Wed, Sep 18, 2019 at 8:43 AM Alex Bradbury [email protected] wrote:
Yes, we'd use github releases most likely.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lowRISC/opentitan/issues/198?email_source=notifications&email_token=AAH2RSQVRNFJUOROAWFJ2STQKJEDJA5CNFSM4IXXMFHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7AQTHA#issuecomment-532744604, or mute the thread https://github.com/notifications/unsubscribe-auth/AAH2RSUBPWGXUZALMWJR34LQKJEDJANCNFSM4IXXMFHA .
I don't think there's a tracking list in GitHub issues, though Andy and Laura both have planning docs that should cover a lot of it. I suggest we leave this issue as-is for now, and aim to spin up proper pre-release check lists (and prioritisation of active issues etc) in the next couple of weeks. CC @aytong @LaurieJ
sounds good.
Thanks Alex.
On Thu, Sep 19, 2019 at 12:10 AM Alex Bradbury [email protected] wrote:
I don't think there's a tracking list in GitHub issues, though Andy and Laura both have planning docs that should cover a lot of it. I suggest we leave this issue as-is for now, and aim to spin up proper pre-release check lists (and prioritisation of active issues etc) in the next couple of weeks. CC @aytong https://github.com/aytong @LaurieJ https://github.com/LaurieJ
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lowRISC/opentitan/issues/198?email_source=notifications&email_token=AAH2RSSBQ52GJDFWNR2XTJDQKMQX7A5CNFSM4IXXMFHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7COZFI#issuecomment-532999317, or mute the thread https://github.com/notifications/unsubscribe-auth/AAH2RSTL4YSW37JWS4INTYDQKMQX7ANCNFSM4IXXMFHA .
@gorusso
hi all, I just wanted to revive this issue a bit and ask a few questions.
I think it is agreed that by launch, we will likely want to provide a known good FPGA bitfile, that much is certain. But do we plan to continually update this bit-file on an as-needed basis as more changes are rolled in (until we have some form of FPGA-CI that can do this automatically?)
My opinion is that the big ask is to have something near-recent available at launch, and after that works towards the CI piece. Perhaps depending upon that time span we might need to refresh the bitfile weekly, but I don't think it needs to be done daily, for instance.
On Wed, Oct 9, 2019 at 12:14 PM tjaychen [email protected] wrote:
hi all, I just wanted to revive this issue a bit and ask a few questions.
I think it is agreed that by launch, we will likely want to provide a known good FPGA bitfile, that much is certain. But do we plan to continually update this bit-file on an as-needed basis as more changes are rolled in (until we have some form of FPGA-CI that can do this automatically?)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lowRISC/opentitan/issues/198?email_source=notifications&email_token=AJZQKVI3MUQSCJYTA5Y4XV3QNYUQ7A5CNFSM4IXXMFHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAZAARI#issuecomment-540147781, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJZQKVIXZIBUO3WVPLL2223QNYUQ7ANCNFSM4IXXMFHA .
My thoughts are the same as with my previous comment. Let's focus for now on the single known-good bitfile prior to launch. We know this is worth doing, and we know we want to ensure this is done at a time when we're not in the midst of a big change and that we want people to put some extra testing into it.
For post-launch, we can then look at how people use prebuilt bitstreams and why. Is it enough to just make it easy to grab the bitstream generated from latest master in CI? Or do we want a regular schedule for "known good" bitstreams. If we do that, do we do additional manual testing, would we adjust our merge policies around the time of that bitfile generation in order to minimise risk of issues? Obviously many questions to explore. I suggest we return to them all later, after launch.
Thanks Alex. Do you mind having a look at the fpga launch goals again? I've outlined some of the steps we're taking to public launch. I'll update the language there, but it's pretty much what you're saying.
On Thu, Oct 10, 2019, 01:01 Alex Bradbury [email protected] wrote:
My thoughts are the same as with my previous comment https://github.com/lowRISC/opentitan/issues/198#issuecomment-532581939. Let's focus for now on the single known-good bitfile prior to launch. We know this is worth doing, and we know we want to ensure this is done at a time when we're not in the midst of a big change and that we want people to put some extra testing into it.
For post-launch, we can then look at how people use prebuilt bitstreams and why. Is it enough to just make it easy to grab the bitstream generated from latest master in CI? Or do we want a regular schedule for "known good" bitstreams. If we do that, do we do additional manual testing, would we adjust our merge policies around the time of that bitfile generation in order to minimise risk of issues? Obviously many questions to explore. I suggest we return to them all later, after launch.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lowRISC/opentitan/issues/198?email_source=notifications&email_token=AAH2RSQRKZXI2DWCOOGV35TQN3OMVA5CNFSM4IXXMFHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA3JXJQ#issuecomment-540449702, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH2RSQAR2NWDPQUBOECLJLQN3OMVANCNFSM4IXXMFHA .
Please have a look here. I believe the fpga testing into pytest is something we really want to try and do, and that will do a lot towards the various fpga goals
https://docs.google.com/document/d/1zDl3i0rh-Mxolc4klaICQahUaO9cIHPtjcjzV9wc2mg/edit#bookmark=id.utybodfyn3v9
Left a few comments on that doc.
As @tjaychen pointed out in #447, we should pick a target date to generate the bitstream. I don't think there's much benefit in this being way before the release (there's plenty of engineers who won't be overly distracted by other release preparations). But it should be far away enough that there's ability to fix bugs and generate another version if there are issues. I'd say Oct 29th if we wanted a week before, and Oct 31st as the last date that makes sense to aim for (that still gives some working days to test and address issues).
As much as I like the Halloween target, Oct 29th is probably most sensible.
29th would be good - please confirm if this is OK :)
@mcy @rpenugo @gkelly and I discussed this last week, and this is currently what we are aiming for.
@mcy is working on a PyTest framework to test FPGAs, similarly @rpenugo is working on a script to check for basic FPGA build errors.
#666 should be merged (raised in signoff meeting).
#665 is a good candidate to have it as part of improved FPGA CI.