[DV] Vote! Name of "unofficial DV work area"
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:
hw/ip/bob/<directory_name>hw/ip/bob/dv/<directory_name>hw/ip/bob/rtl/<directory_name>
Vote 2: what is the directory name
svtbscratch_dvpre_dvtrial_dvquick_dv
My vote: 1 + 2, ie. hw/ip/bob/scratch_dv
+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 .
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.
I vote for 1 and 3. Intent is that this code is to be preserved.
1, 3
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.
1, 4
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...
1, 3
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.
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.
Did we ever follow through with adding this to our docs / actually using that pre_dv area?
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
Thanks Weicai, let me add it to the docs then such that we can close this issue.