Resubmitted DCLS val updates, updates to regress scripts and Makefile#468
Resubmitted DCLS val updates, updates to regress scripts and Makefile#468samipmodi323 wants to merge 2 commits into
Conversation
590f2b7 to
57d2ee6
Compare
|
Coverage report for this PR is available at https://chipsalliance.github.io/Cores-VeeR-EL2//html/dev/468/coverage_dashboard/all, documentation is available at https://chipsalliance.github.io/Cores-VeeR-EL2//html/dev/468/docs_rendered/html |
1 similar comment
|
Coverage report for this PR is available at https://chipsalliance.github.io/Cores-VeeR-EL2//html/dev/468/coverage_dashboard/all, documentation is available at https://chipsalliance.github.io/Cores-VeeR-EL2//html/dev/468/docs_rendered/html |
nasahlpa
left a comment
There was a problem hiding this comment.
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
| 76: force `LOCKSTEP.dma_hresp = '1; | ||
| // --- END ADDED AHB FORCES --- | ||
| // --- ADDED UNCONDITIONAL FORCES (AHB) --- | ||
| 77: force `LOCKSTEP.o_cpu_halt_ack = '1; |
There was a problem hiding this comment.
This fore already exists for the AXI case as well. Instead of duplicating it here, could we use force only once?
There was a problem hiding this comment.
Forces consolidated in the latest push from 29-June
| #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 |
There was a problem hiding this comment.
Is this needed? As it is commented out probably not - so I would recommend deleting it.
There was a problem hiding this comment.
Removed in the latest push from 29-June
3f10d3f to
abef2ca
Compare
|
Coverage report for this PR is available at https://chipsalliance.github.io/Cores-VeeR-EL2//html/dev/468/coverage_dashboard/all, documentation is available at https://chipsalliance.github.io/Cores-VeeR-EL2//html/dev/468/docs_rendered/html |
moidx
left a comment
There was a problem hiding this comment.
Once you address the comments, please amend the last commit and force push instead of adding one more commit. Thanks.
5e55989 to
3a8d00b
Compare
|
@samipmodi323 would it be possible to just have a single commit in this PR and add a descriptive commit message? |
nasahlpa
left a comment
There was a problem hiding this comment.
I think this PR needs a bit more work. The covergroups currently do not consider the multi-bit encoding.
| .corruption_detected(corruption_detected), | ||
| `ifdef RV_LOCKSTEP_REGFILE_ENABLE |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
| 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 |
There was a problem hiding this comment.
Can't this be simplified to old_boot_count == (33*2) ?
There was a problem hiding this comment.
My intent was just to keep the flow same as few other places I have this >= & <=.
There was a problem hiding this comment.
updated in my latest push
| echo -e "${COLOR_WHITE}==================== running test '${NAME}' ====================${COLOR_CLEAR}" | ||
|
|
||
| for COVERAGE in branch toggle functional; do | ||
| # for COVERAGE in branch toggle functional; do |
There was a problem hiding this comment.
Would it be possible to please not comment out code? Same below at line 35.
There was a problem hiding this comment.
Done in my latest push from July1
| input logic core_rst_l, | ||
| input logic lockstep_err_injection_en_i, | ||
| input logic disable_corruption_detection_i, | ||
| input logic corruption_detected_o, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Hi, I have the updates in my follow on turnin...https://github.com/chipsalliance/Cores-VeeR-EL2/pull/479/changes#diff-58450bb2dc27f6c231cec64be3969c2fb25634ac43ddef3de0f7c758a9635802
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
In my latest PR, I have removed the fcov completely. In my next PR, it will be added with MUBI. Thanks
|
|
||
| // 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}; |
There was a problem hiding this comment.
This is something I already have flagged in my previous review - those signals are multi-bit signals. Simply using 1 here does not work.
There was a problem hiding this comment.
Hi, I have the updates in my follow on turnin...https://github.com/chipsalliance/Cores-VeeR-EL2/pull/479/changes#diff-58450bb2dc27f6c231cec64be3969c2fb25634ac43ddef3de0f7c758a9635802
| # USER_MODE - '1' for user mode, '0' for without user mode | ||
| # CACHE WAYPACK - | ||
| check_args_count $# 6 | ||
| # SIMULATOR - (Optional) 'verilator' (default) or 'vcs' |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
3a8d00b to
f18cfee
Compare
…date axi/ahb forces and also updated dcls.c to reflect it
f18cfee to
54b60a8
Compare
|
Coverage report for this PR is available at https://chipsalliance.github.io/Cores-VeeR-EL2//html/dev/468/coverage_dashboard/all, documentation is available at https://chipsalliance.github.io/Cores-VeeR-EL2//html/dev/468/docs_rendered/html |
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