opentitan icon indicating copy to clipboard operation
opentitan copied to clipboard

[DV] Vote! Name of "unofficial DV work area"

Open sjgitty opened this issue 6 years ago • 15 comments

Opening the voting of the unofficial DV work area directory until EOD (PST) 2020-01-10. Please vote if you have an opinion.

For context, this area should represent any of the following IMO:

  • a work area for designers or DVers that is not intended to apply towards code coverage
  • experimental verification that is worthy of maintaining
  • sanity verification that is worthy of maintaining
  • any language: SV, C + DPI, C++ + DPI, cocotb, etc.

It is not worthy of checking in if the owner is not willing to maintain it. If it is intended to go towards code coverage / DV signoff, it should stay under dv/. It should always contain a README.md file to declare scope, intent, and a brief description of the environment. Since it is just "unofficial" the documentation does not need to be exhaustive but should show how to recreate results.


Vote 1: where in ip tree. Assume IP named bob:

  1. hw/ip/bob/<directory_name>
  2. hw/ip/bob/dv/<directory_name>
  3. hw/ip/bob/rtl/<directory_name>

Vote 2: what is the directory name

  1. svtb
  2. scratch_dv
  3. pre_dv
  4. trial_dv
  5. quick_dv

sjgitty avatar Jan 09 '20 01:01 sjgitty

My vote: 1 + 2, ie. hw/ip/bob/scratch_dv

sjgitty avatar Jan 09 '20 01:01 sjgitty

+1 for hw/ip/bob/scratch_dv

On Wed, Jan 8, 2020 at 5:49 PM Scott Johnson [email protected] wrote:

My vote: 1 + 2, ie. hw/ip/bob/scratch_dv

— 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/1306?email_source=notifications&email_token=AKSTAO6D7EEXMBEDD3V5EVTQ4Z7DXA5CNFSM4KERFNF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIOUIUA#issuecomment-572343376, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKSTAOZ5MOTG7Z24P3YCEWTQ4Z7DXANCNFSM4KERFNFQ .

aytong avatar Jan 09 '20 01:01 aytong

Question: is it restricting to think of this just for dv? Should this be generalized to hw/ip/bob/dv/scratch for scratch things related to dv hw/ip/bob/rtl/scratch for scratch things related to rtl

Or (given how the votes are going) hw/ip/bob/scratch

and add a bullets to Scott's list

  • experimental code that is worth maintaining
  • code/scripts useful during the design process that are worth maintaining

I know in the past I have used little scripts to help generate rtl or sw fragments that could be worth preserving.

mdhayter avatar Jan 09 '20 02:01 mdhayter

I vote for 1 and 3. Intent is that this code is to be preserved.

mwbranstad avatar Jan 09 '20 16:01 mwbranstad

1, 3

senelson7 avatar Jan 09 '20 16:01 senelson7

I vote for 1, 3. But I think Mark has a point to not limit it to DV. If we found it is applicable to add a unofficial RTL work area, I propose: For vote 1, -> I still for choice 1. For vote 2, -> we can use more generic name, say : pre_ip_name, then under it we can do pre_dv, and pre_rtl.

cindychip avatar Jan 09 '20 18:01 cindychip

1, 4

weicaiyang avatar Jan 09 '20 18:01 weicaiyang

Question: is it restricting to think of this just for dv? Should this be generalized to hw/ip/bob/dv/scratch for scratch things related to dv hw/ip/bob/rtl/scratch for scratch things related to rtl

Or (given how the votes are going) hw/ip/bob/scratch

and add a bullets to Scott's list

  • experimental code that is worth maintaining
  • code/scripts useful during the design process that are worth maintaining

I know in the past I have used little scripts to help generate rtl or sw fragments that could be worth preserving.

Just noting here that we also have the util subfolder which we typically use to store such scripts (see e.g. under ip/alert_handler, ip/rv_plic or ip/prim/util...

msfschaffner avatar Jan 10 '20 00:01 msfschaffner

1, 3

msfschaffner avatar Jan 10 '20 00:01 msfschaffner

1, 4

'Trial' is loosely synonymous with 'initial' / 'preliminary' as well as with 'experimental'.

sriyerg avatar Jan 10 '20 07:01 sriyerg

Here are some additional comments to address Michael’s questions, and since the idea was original sponsored by me, I will make it clear what I intended.

Historically, myself and others have found it useful to create a small testbench to test the basics of some new RTL module. The level of coverage can be from a simple “clocks and reset” test to make sure the design basically compiles, to developing some routines that send packets, write/read/compare register values, etc. Unlike a well structured UVM environment with uVCs and randomized bus protocols, the intent of this test bench is to be simple, no uVCs, no error testing, and typically just one file if possible. In the end, this test bench prepares the RTL to get beyond the basics for entering into the full UVM testing environment. Time is not wasting on compile issues, reset problems at the UVM test entry point. Focus begins faster on finding the “juicy” bugs. So the idea of this directory is for “pre” DV verification, it only a test bench, and is for early RTL scrubbing. However, it is worth maintaining because of it’s useful, especially when new features are added, the same process is in place: pre DV testing. Hope this helps.

From: Michael Schaffner [email protected] Sent: Thursday, January 9, 2020 6:07 PM To: lowRISC/opentitan [email protected] Cc: Mark Branstad [email protected]; Comment [email protected] Subject: Re: [lowRISC/opentitan] [DV] Vote! Name of "unofficial DV work area" (#1306)

Question: is it restricting to think of this just for dv? Should this be generalized to hw/ip/bob/dv/scratch for scratch things related to dv hw/ip/bob/rtl/scratch for scratch things related to rtl

Or (given how the votes are going) hw/ip/bob/scratch

and add a bullets to Scott's list

  • experimental code that is worth maintaining
  • code/scripts useful during the design process that are worth maintaining

I know in the past I have used little scripts to help generate rtl or sw fragments that could be worth preserving.

Just noting here that we also have the util subfolder which we typically use to store such scripts (see e.g. under ip/alert_handler, ip/rv_plic or ip/prim/util...

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/lowRISC/opentitan/issues/1306?email_source=notifications&email_token=AMTDD3MRBNHVVIV7CH3QOD3Q4633XA5CNFSM4KERFNF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEISHEEI#issuecomment-572813841, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMTDD3I7EI4STUFVTD6IHWDQ4633XANCNFSM4KERFNFQ.

mwbranstad avatar Jan 10 '20 16:01 mwbranstad

As of EOD Friday, the winner was 1 + 3, so given this example:

hw/ip/bob/pre_dv

I will propose a change to the file doc/ug/directory_structure.md to gather some of the thoughts here, and people can weigh in on that PR.

sjgitty avatar Jan 13 '20 19:01 sjgitty

Did we ever follow through with adding this to our docs / actually using that pre_dv area?

msfschaffner avatar Aug 30 '21 21:08 msfschaffner

Hi Michael,

I think so. We have created pre_dv in aes, kmac, entroy_src etc. Here is the one in entroy_src. https://github.com/lowRISC/opentitan/tree/master/hw/ip/entropy_src/pre_dv

On Mon, Aug 30, 2021 at 2:32 PM Michael Schaffner @.***> wrote:

Did we ever follow through with adding this to our docs / actually using that pre_dv area?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lowRISC/opentitan/issues/1306#issuecomment-908714404, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALYCNYXCYFHBCXLJELG5HATT7P2GLANCNFSM4KERFNFQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Thanks Weicai

weicaiyang avatar Aug 30 '21 21:08 weicaiyang

Thanks Weicai, let me add it to the docs then such that we can close this issue.

msfschaffner avatar Aug 30 '21 21:08 msfschaffner