Skip to content

Resubmitted DCLS val updates, updates to regress scripts and Makefile#468

Open
samipmodi323 wants to merge 2 commits into
mainfrom
dev/samipmodi323/dcls_val_updates2
Open

Resubmitted DCLS val updates, updates to regress scripts and Makefile#468
samipmodi323 wants to merge 2 commits into
mainfrom
dev/samipmodi323/dcls_val_updates2

Conversation

@samipmodi323

Copy link
Copy Markdown
Collaborator

Added dcls coverage under testbench/coverage/fcov - Samip
Updates Makefile - Jinal
added ability to print sim time even in c code - Jinal
updated .github/scripts/regression scripts - Samip/Jinal

@github-actions

Copy link
Copy Markdown

1 similar comment
@github-actions

Copy link
Copy Markdown

@samipmodi323 samipmodi323 marked this pull request as ready for review June 26, 2026 19:33
@samipmodi323 samipmodi323 requested review from moidx and nasahlpa June 26, 2026 19:33

@nasahlpa nasahlpa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @samipmodi323. A couple of things that I personally would change:

  • A git commit message on each commit would help the reviewer to understand why the commit is needed
  • Separating changes that are related into multiple commits
  • Rebasing the branch instead of merging it

Comment thread testbench/tb_top.sv Outdated
76: force `LOCKSTEP.dma_hresp = '1;
// --- END ADDED AHB FORCES ---
// --- ADDED UNCONDITIONAL FORCES (AHB) ---
77: force `LOCKSTEP.o_cpu_halt_ack = '1;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fore already exists for the AXI case as well. Instead of duplicating it here, could we use force only once?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forces consolidated in the latest push from 29-June

Comment thread tools/Makefile Outdated
Comment on lines +26 to +43
#don't override here. TODO: a better place to randomize DELAY/MUBI params
#ifneq ($(findstring dcls,$(TEST)),)
#lockstep_enable ?= 1
#lockstep_regfile_enable ?= 1
#endif
#
#ifdef lockstep_enable
# override CONF_PARAMS += -set lockstep_enable=1
# ifdef lockstep_regfile_enable
# override CONF_PARAMS += -set lockstep_regfile_enable=1
# endif
# ifndef lockstep_delay
# MIN:= 2
# MAX:= 4
# lockstep_delay := $(shell bash -c 'echo $$(( ( $$RANDOM % ($(MAX) - $(MIN) + 1) ) + $(MIN) ))')
# endif
# override CONF_PARAMS += -set lockstep_delay=$(lockstep_delay)
#endif

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed? As it is commented out probably not - so I would recommend deleting it.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed in the latest push from 29-June

Comment thread tools/Makefile Outdated
@samipmodi323 samipmodi323 force-pushed the dev/samipmodi323/dcls_val_updates2 branch from 3f10d3f to abef2ca Compare June 29, 2026 18:41
@github-actions

Copy link
Copy Markdown

@moidx moidx left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once you address the comments, please amend the last commit and force push instead of adding one more commit. Thanks.

Comment thread testbench/coverage/fcov/dcls_fcov.sv Outdated
Comment thread testbench/coverage/fcov/dcls_fcov_bind.sv Outdated
@samipmodi323 samipmodi323 force-pushed the dev/samipmodi323/dcls_val_updates2 branch 3 times, most recently from 5e55989 to 3a8d00b Compare June 30, 2026 14:44
moidx
moidx previously approved these changes Jun 30, 2026
@moidx moidx requested a review from nasahlpa June 30, 2026 14:55
@nasahlpa

Copy link
Copy Markdown
Collaborator

@samipmodi323 would it be possible to just have a single commit in this PR and add a descriptive commit message?

@nasahlpa nasahlpa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this PR needs a bit more work. The covergroups currently do not consider the multi-bit encoding.

Comment on lines +20 to +21
.corruption_detected(corruption_detected),
`ifdef RV_LOCKSTEP_REGFILE_ENABLE

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this code work for the case when If RV_LOCKSTEP_REGFILE_ENABLE is not set? I think then we have a stray comma at line 20.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank for this review. I have pushed change for this. And as mentioned overall, the fcov will change in my follow on turning with Mubi added

Comment thread testbench/tests/dcls/dcls.c Outdated
if (old_boot_count == (2*2) || old_boot_count == (3*2) || old_boot_count == (6*2) ||
old_boot_count == (9*2) || old_boot_count == (10*2) || old_boot_count == (13*2) ||
old_boot_count == (18*2) || old_boot_count == (19*2) || old_boot_count == (28*2) ||
(old_boot_count >= (33*2) && old_boot_count <= (33*2) && (old_boot_count % 2 == 0)) || //skip VEER side Unconditional forces to prevent breakage in code exectuion

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't this be simplified to old_boot_count == (33*2) ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My intent was just to keep the flow same as few other places I have this >= & <=.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated in my latest push

Comment thread tools/Makefile
Comment thread .github/scripts/run_regression_tests.sh Outdated
echo -e "${COLOR_WHITE}==================== running test '${NAME}' ====================${COLOR_CLEAR}"

for COVERAGE in branch toggle functional; do
# for COVERAGE in branch toggle functional; do

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to please not comment out code? Same below at line 35.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in my latest push from July1

Comment thread testbench/coverage/fcov/dcls_fcov.sv Outdated
input logic core_rst_l,
input logic lockstep_err_injection_en_i,
input logic disable_corruption_detection_i,
input logic corruption_detected_o,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've mentioned this already in my previous review, aren't those signals multi-bit encoded signals?

In my opinion, this could should work with different multi bit encodings.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not recommend merging code into the repository that does not work. I would recommend either fixing it here in this pull request or removing the functional coverage code and pushing it in the other PR.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my latest PR, I have removed the fcov completely. In my next PR, it will be added with MUBI. Thanks

Comment thread testbench/coverage/fcov/dcls_fcov.sv Outdated

// Error injection and corruption enable path
err_injection_vs_detection: coverpoint {lockstep_err_injection_en_i, disable_corruption_detection_i, corruption_detected_o} {
bins inject_detected = {3'b111};

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is something I already have flagged in my previous review - those signals are multi-bit signals. Simply using 1 here does not work.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# USER_MODE - '1' for user mode, '0' for without user mode
# CACHE WAYPACK -
check_args_count $# 6
# SIMULATOR - (Optional) 'verilator' (default) or 'vcs'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this script is meant to be run in CI - is the intention of this change to run the regression with vcs at a later point?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No such intention, but the script is updated to also support VCS. I am using this script also to run tests locally with VCS, thus the support is needed.

@samipmodi323 samipmodi323 force-pushed the dev/samipmodi323/dcls_val_updates2 branch from 3a8d00b to f18cfee Compare June 30, 2026 21:49
…date axi/ahb forces and also updated dcls.c to reflect it
@samipmodi323 samipmodi323 force-pushed the dev/samipmodi323/dcls_val_updates2 branch from f18cfee to 54b60a8 Compare July 1, 2026 13:53
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants