opentitan icon indicating copy to clipboard operation
opentitan copied to clipboard

[prim/rtl] prim_packer is generating a lint error for entropy_src module

Open mwbranstad opened this issue 6 years ago • 7 comments

Getting this lint error message: E ASSIGN_SIGN: prim_packer.sv:77 Unsigned target 'lod_idx' assigned signed value 'i'

Should this be waived or fixed? @eunchan Is this issue for you to address?

mwbranstad avatar Jul 28 '20 15:07 mwbranstad

This could be fixed with `unsigned(i) or $unsigned(i), or waived. Can you see if one of the first two fixes it for you? Then you could include that fix in your next PR.

sjgitty avatar Jul 28 '20 20:07 sjgitty

Just amended the prior PR, since the unsigned fix was not done correctly. Used the $unsigned(i) form.

mwbranstad avatar Jul 29 '20 13:07 mwbranstad

@mwbranstad is this still a problem for you? I'm guessing not since you switched to your own brand of packer. @eunchan should we fix this in the other version?

tjaychen avatar Sep 24 '20 20:09 tjaychen

Personally, I prefer waive this kind of thing :) Let me address this in KMAC lint

eunchan avatar Sep 24 '20 20:09 eunchan

yeah waiving is fine too with me.

On Thu, Sep 24, 2020 at 1:25 PM Eunchan Kim [email protected] wrote:

Personally, I prefer waive this kind of thing :) Let me address this in KMAC lint

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lowRISC/opentitan/issues/2999#issuecomment-698570047, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH2RSWQ5N5X3SQ3VA2HV23SHOTKNANCNFSM4PKVBK6Q .

tjaychen avatar Sep 24 '20 20:09 tjaychen

for what it is worth, I generally prefer to fix these things in RTL because it is more portable to all future checkers, and it also shows that you have a full understanding of the issue (sometimes we think we do and don't unfortunately). Still, sometimes in a parametrized design, one cannot fix it due to limits in the language, so a waiver is needed.

mwbranstad avatar Sep 28 '20 21:09 mwbranstad

Since the prim_packer_fifo was used in this specific case, it is safe to close this issue now.

mwbranstad avatar Nov 30 '20 15:11 mwbranstad