Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify coding style to improve CC #1642

Merged
merged 12 commits into from
Nov 21, 2023

Conversation

AEzzejjari
Copy link
Member

Modify coding style to improve Code Coverage

Signed-off-by: Alae-Eddine Ez-Zejjari <[email protected]>
Copy link
Contributor

✔️ successful run, report available here.

Copy link
Contributor

✔️ successful run, report available here.

Copy link
Contributor

❌ failed run, report available here.

Copy link
Contributor

✔️ successful run, report available here.

Copy link
Contributor

✔️ successful run, report available here.

3 similar comments
Copy link
Contributor

✔️ successful run, report available here.

Copy link
Contributor

✔️ successful run, report available here.

Copy link
Contributor

✔️ successful run, report available here.

Copy link
Contributor

✔️ successful run, report available here.

Copy link
Contributor

✔️ successful run, report available here.

Copy link
Contributor

✔️ successful run, report available here.

1 similar comment
Copy link
Contributor

✔️ successful run, report available here.

@JeanRochCoulon
Copy link
Contributor

Well done @AEzzejjari !!

@JeanRochCoulon JeanRochCoulon merged commit 7963448 into openhwgroup:master Nov 21, 2023
13 checks passed
@@ -127,7 +127,7 @@ module commit_stage
we_gpr_o[0] = 1'b1;
end
// check whether the instruction we retire was a store
if (commit_instr_i[0].fu == STORE && !instr_0_is_amo) begin
if ((!CVA6Cfg.RVA && commit_instr_i[0].fu == STORE) || (CVA6Cfg.RVA && commit_instr_i[0].fu == STORE && !instr_0_is_amo)) begin
Copy link
Contributor

Choose a reason for hiding this comment

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

Have you considered the following simpler expression?

      if (commit_instr_i[0].fu == STORE && !(CVA6Cfg.RVA && instr_0_is_amo)) begin

(Sorry I’m really late, I fell on this while I was rebasing something else ^^’)

Copy link
Contributor

Choose a reason for hiding this comment

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

Same here: https://github.com/openhwgroup/cva6/pull/1647/files#diff-7475d1680806900b5417cb90ca55525c7b81ae683f8e5a45353378df80f2e8f7R258

Could it be as below?

        if (areq_i.fetch_valid && (!dreq_i.spec || !(CVA6Cfg.NonIdemPotenceEn && addr_ni))) begin
// or even
        if (areq_i.fetch_valid && !(CVA6Cfg.NonIdemPotenceEn && dreq_i.spec && addr_ni)) begin

Was there any CC issues with such expressions or can we use them instead?

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