IP Criteria to be included in the top
To continue the discussion from the HMAC testplan meeting, I would like to get the feedback what should be the criteria for top module.
I think below three condition should be okay:
- RTL milestone: D1
- DV milestone: V1
- ip.hjson exists and comportable to the spec. (topgen can generate it)
(Optional) software driver
@sjgitty I don't feel this is finalized yet, and we certainly have designs that are not in V1 status that are successfully in earlgrey today (most notably: spi_device). I would argue strongly that there are reasons to have V0 blocks in earlgrey: it allows SW/FPGA to begin working on these before DV has ramped up (looking forward, if we continue at our current pace, DV will always lag behind.
I think we do need to come up with a definition, but I don't think it needs to be tied to a V #. For instance, it could be:
- D1
- some sanity verification by designer or DVer proving basic functionality
- some sanity top level test that shows that it doesn't bring down the chip
I'm just throwing this out there, needs to be more heavily discussed.
Converting tag to Recreate in OT
this sounds good to me in general. Except, I imagine for some blocks, the full feature set will not be known until certain partners are onboard. In those scenarios, is it sufficient for only the known parts to satisfy the above conditions?
For example, anything that touches analog logic I imagine will fall into this category (such as flash, fuse controller). Anything that touches physical security countermeasures may also fall into this category.
That is also on going discussion issue (looks like not yet created). I expect if additional functionality (incl. features) is to be implemented, it needs additional technical proposal and the milestone goes to D1 V1. So, the milestone of the IP also should include the version of the IP too, in my opinion.
On Tue, Sep 03, 2019 at 10:18:29AM -0700, tjaychen wrote:
this sounds good to me in general. Except, I imagine for some blocks, the full feature set will not be known until certain partners are onboard. In those scenarios, is it sufficient for only the known parts to satisfy the above conditions?
For example, anything that touches analog logic I imagine will fall into this category (such as flash, fuse controller). Anything that touches physical security countermeasures may also fall into this category.
-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/lowRISC/opentitan/issues/91#issuecomment-527554682
That seems like a good idea to tie the milestones to a version of the IP, or basically to everything we know about it at the time.
On Tue, Sep 3, 2019 at 11:15 AM Eunchan Kim [email protected] wrote:
That is also on going discussion issue (looks like not yet created). I expect if additional functionality (incl. features) is to be implemented, it needs additional technical proposal and the milestone goes to D1 V1. So, the milestone of the IP also should include the version of the IP too, in my opinion.
On Tue, Sep 03, 2019 at 10:18:29AM -0700, tjaychen wrote:
this sounds good to me in general. Except, I imagine for some blocks, the full feature set will not be known until certain partners are onboard. In those scenarios, is it sufficient for only the known parts to satisfy the above conditions?
For example, anything that touches analog logic I imagine will fall into this category (such as flash, fuse controller). Anything that touches physical security countermeasures may also fall into this category.
-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/lowRISC/opentitan/issues/91#issuecomment-527554682
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/lowRISC/opentitan/issues/91?email_source=notifications&email_token=AAH2RSSGEQG2EJ5WFWB7RFTQH2STVA5CNFSM4ISUN7B2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5ZC2NI#issuecomment-527576373, or mute the thread https://github.com/notifications/unsubscribe-auth/AAH2RSSYZXCFQITMU53KS23QH2STVANCNFSM4ISUN7BQ .
Here's how I would summarize it
- the project will be a moving target; the best we can do is comment on the proposed features at any given time. New features and proposals will be evaluated as they come in.
- when new features are known to be coming, we'll tack a milestone on them. We're doing this today with 0.5 / 1.0 versions of Ibex, SPI device, etc. Then we can make decisions based upon that milestone. So re future items like analog devices, we can anchor the proposal to the FPGA-implementable versions in 0.5, and as we research more our silicon options, propose modifications for 1.0.
- Once a device is in the top-level, it switches to a more standard pull-request update model, and we'll already have an existing sanity test for that block, so top-level-inclusion won't be the issue. We will have to discuss what this does to the D1/V1 tracking of status. Perhaps once included as a "commit for release" as a 0.5 milestone, and "completed", it starts a new life at D1/V1 as its 1.0 counterpart with the first new feature proposal. But that is a different issue that we can tackle separately.
Does the RFC process in doc/project/rfc_process.md address this question? Can this be closed? Thanks. @sjgitty
No, we still haven't succinctly defined it imo, will leave open.
@msfschaffner do you want to take this topic through TC? I think the conditions defined in the op post of this issue is actually quite reasonable. We probably just need to officially close on this.
Hm... looks like this discussion is from the time when the definitions of D*/V* were still pretty much in flux.
Our D1 checklist now contains an item called IP_INSTANTIABLE:
The unit is able to be instantiated and connected in top level RTL files.
The design must compile and elaborate cleanly without errors.
The unit must not break top level functionality such as propagating X through TL-UL interfaces,
continuously asserting alerts or interrupts, or creating undesired TL-UL transactions.
Given that this is a D1 item, requiring V1 as well for inclusion in the top-level is going to be difficult. However, it may make sense to add a sentence for the hjson part (point 3. from @eunchan's list).
I don't think this has to go through the TC just yet - we can discuss and try to close in the silicon WG meeting.
Actually maybe V1 isn't the right term... but I think all block levels have this basic stage that can be reached where we prove TL-UL accesses are operational. I think really taht's the stage we want, so it's more like...V0 in a way.
WG sounds good too, I think this is just something we can and should close out.
Sounds good - I will put it on the agenda for the next meeting.
just documenting what i believe was agreed upon in the meeting:
- we won't add another check point for "including in top"
- there already is an IP_INSTANTIABLE item, and we will likely enhance the documentation for this item to include various other things, some of which are actually V1 items
- the minimal requirement is likely the block needs to auto-generate the basic CSR testbench and ensure that CSR tests can pass before it can be integrated into the top.
@msfschaffner @sriyerg let me know if I got this wrong.
Indeed, this looks accurate (thanks for capturing this here!). I will push a PR with proposed doc changes soon so that we can discuss it in the TC also (the meeting today was cancelled due to Easter holidays in the EU, hence we will likely talk about this in 2 weeks from now).
We've discussed this in the TC and updated the checklist accordingly.