opentitan icon indicating copy to clipboard operation
opentitan copied to clipboard

[doc] document our primitives

Open sjgitty opened this issue 7 years ago • 8 comments

  • [ ] add mention in Comportability the recommendation to follow utilization guides for existing IP primitives
    • [ ] pointer to a yet-to-be-written technical specification for all primitives (see below)
    • [ ] list requirements for primitives (RTL, lint, DV, etc)
    • [ ] suggest the protocol to add a primitive to our library (rationale as to why existing ones are insufficient)
  • [ ] create said technical specification for all primitives; goal: concise but thorough, with rationale;
    • [ ] Question: one master doc, or one per? (leaning former)
    • [ ] Question: place under hw/ip/prim/doc/prim.md? or hw/ip/prim/README.md?
    • [ ] Sections, similar to other technical specifications: feature set, overview, block diagram, interfaces, current level of verification (mini D/V status), CDC implications (a bit redundant with hw/formal/README.md section on CDC that is coming), regtool recommendations, software recommendations

sjgitty avatar Aug 16 '19 01:08 sjgitty

@sjgitty is there anything here you want the rest of us to help fill in?

tjaychen avatar Aug 16 '19 17:08 tjaychen

I don't feel the need to task anyone with it yet, but it should be done by 0.5. Anyone is welcome to start on it, likely in a Google Doc then we can all chip in.

sjgitty avatar Aug 16 '19 21:08 sjgitty

Preference among some team members:

  • individual mini-specs for moderately complex items
  • comportability points to prim/README.md which links to more detailed specs
  • @eunchan will start one for prim_packer as an example, @msfschaffner can follow with LFSR
  • @NilsGraf or @sjgitty can work on CDC crossing items
  • mini-specs should be targeted at other designers to use

sjgitty avatar Sep 16 '19 21:09 sjgitty

Current thinking of which ones to target

  • prim_arbiter.sv
  • prim_fifo_async.sv - put in a CDC primitives doc
  • prim_fifo_sync.sv
  • prim_flop_2sync.sv - put in CDC primitives doc
  • prim_lfsr.sv
  • prim_packer.sv
  • prim_pulse_sync.sv - put in CDC primitives doc
  • prim_arbiter.sv

sjgitty avatar Sep 16 '19 21:09 sjgitty

For things like prim_flash, which is more than just generic storage, should there be one also? Or do we prefer I keep that with the flash spec itself?

On Mon, Sep 16, 2019 at 2:42 PM Scott Johnson [email protected] wrote:

Current thinking of which ones to target

  • prim_arbiter.sv
  • prim_fifo_async.sv - put in a CDC primitives doc
  • prim_fifo_sync.sv
  • prim_flop_2sync.sv - put in CDC primitives doc
  • prim_lfsr.sv
  • prim_packer.sv
  • prim_pulse_sync.sv - put in CDC primitives doc
  • prim_arbiter.sv

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lowRISC/opentitan/issues/10?email_source=notifications&email_token=AAH2RSWN3ONYVXBCFCYA6ZLQJ74TPA5CNFSM4ISTJPGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD62TM3A#issuecomment-531969644, or mute the thread https://github.com/notifications/unsubscribe-auth/AAH2RSVN2JVQX7LOBDOMM73QJ74TPANCNFSM4ISTJPGA .

tjaychen avatar Sep 17 '19 17:09 tjaychen

One thing we were steering towards was the notion that if a primitive was primarily for one functional unit, no need to document it as a standalone primitive. It could be that someone will request documentation in the future, but we're going to only start with documenting those that are clearly intended for multi-re-use, primarily the CDC ones and similar.

On Tue, Sep 17, 2019 at 10:18 AM tjaychen [email protected] wrote:

For things like prim_flash, which is more than just generic storage, should there be one also? Or do we prefer I keep that with the flash spec itself?

On Mon, Sep 16, 2019 at 2:42 PM Scott Johnson [email protected] wrote:

Current thinking of which ones to target

  • prim_arbiter.sv
  • prim_fifo_async.sv - put in a CDC primitives doc
  • prim_fifo_sync.sv
  • prim_flop_2sync.sv - put in CDC primitives doc
  • prim_lfsr.sv
  • prim_packer.sv
  • prim_pulse_sync.sv - put in CDC primitives doc
  • prim_arbiter.sv

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub < https://github.com/lowRISC/opentitan/issues/10?email_source=notifications&email_token=AAH2RSWN3ONYVXBCFCYA6ZLQJ74TPA5CNFSM4ISTJPGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD62TM3A#issuecomment-531969644 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AAH2RSVN2JVQX7LOBDOMM73QJ74TPANCNFSM4ISTJPGA

.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lowRISC/opentitan/issues/10?email_source=notifications&email_token=AJZQKVNXPI7UPHCK2ACSQSTQKEGPVA5CNFSM4ISTJPGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD65IDZY#issuecomment-532316647, or mute the thread https://github.com/notifications/unsubscribe-auth/AJZQKVP2RATJHMUTQLDVNYLQKEGPVANCNFSM4ISTJPGA .

sjgitty avatar Sep 17 '19 17:09 sjgitty

SGTM

On Tue, Sep 17, 2019 at 10:59 AM Scott Johnson [email protected] wrote:

One thing we were steering towards was the notion that if a primitive was primarily for one functional unit, no need to document it as a standalone primitive. It could be that someone will request documentation in the future, but we're going to only start with documenting those that are clearly intended for multi-re-use, primarily the CDC ones and similar.

On Tue, Sep 17, 2019 at 10:18 AM tjaychen [email protected] wrote:

For things like prim_flash, which is more than just generic storage, should there be one also? Or do we prefer I keep that with the flash spec itself?

On Mon, Sep 16, 2019 at 2:42 PM Scott Johnson [email protected] wrote:

Current thinking of which ones to target

  • prim_arbiter.sv
  • prim_fifo_async.sv - put in a CDC primitives doc
  • prim_fifo_sync.sv
  • prim_flop_2sync.sv - put in CDC primitives doc
  • prim_lfsr.sv
  • prim_packer.sv
  • prim_pulse_sync.sv - put in CDC primitives doc
  • prim_arbiter.sv

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <

https://github.com/lowRISC/opentitan/issues/10?email_source=notifications&email_token=AAH2RSWN3ONYVXBCFCYA6ZLQJ74TPA5CNFSM4ISTJPGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD62TM3A#issuecomment-531969644

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/AAH2RSVN2JVQX7LOBDOMM73QJ74TPANCNFSM4ISTJPGA

.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub < https://github.com/lowRISC/opentitan/issues/10?email_source=notifications&email_token=AJZQKVNXPI7UPHCK2ACSQSTQKEGPVA5CNFSM4ISTJPGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD65IDZY#issuecomment-532316647 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AJZQKVP2RATJHMUTQLDVNYLQKEGPVANCNFSM4ISTJPGA

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lowRISC/opentitan/issues/10?email_source=notifications&email_token=AAH2RSU6Q44FEC2PCNNEML3QKELIFA5CNFSM4ISTJPGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD65MDGQ#issuecomment-532332954, or mute the thread https://github.com/notifications/unsubscribe-auth/AAH2RSUQX2NT4GDPYR7GV23QKELIFANCNFSM4ISTJPGA .

tjaychen avatar Sep 17 '19 20:09 tjaychen

I do think this would still be good to try and address before November, will track.

sjgitty avatar Oct 25 '19 05:10 sjgitty