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

Invalid Type Assignment in uvma_rvfi_instr_seq_item.sv #2550

Open
MikeOpenHWGroup opened this issue Nov 6, 2024 · 0 comments
Open

Invalid Type Assignment in uvma_rvfi_instr_seq_item.sv #2550

MikeOpenHWGroup opened this issue Nov 6, 2024 · 0 comments
Assignees
Labels
bug Something isn't working Common Infrastructure Library components or scriptware common to all environments in CORE-V-VERIF

Comments

@MikeOpenHWGroup
Copy link
Member

In lib/uvm_agents/uvma_rvfi/seq/uvma_rvfi_instr_seq_item.sv we see this: mode = rvfi.mode;, where mode is an enum of type uvma_rvfi_mode (defined in lib/uvm_agents/uvma_rvfi/uvma_rvfi_tdefs.sv) and rvfi.mode is of type logic [MAX_LEN-1:0] (defined in lib/uvm_agents/uvma_rvfi/uvma_rvfi_tdefs.sv).

I believe that this is an illegal assignment. It seems that VCS accepts this code, but DSim report an InvalidTypeAssign error at compile time.

@ASintzoff I am assigning this issue to you because I know you have access to VCS and that the CVA6 uses this code. Do you also have access to another simulator to see if it complains about this code? In the meantime, I am thinking about a workaround...

@MikeOpenHWGroup MikeOpenHWGroup added bug Something isn't working Common Infrastructure Library components or scriptware common to all environments in CORE-V-VERIF labels Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Common Infrastructure Library components or scriptware common to all environments in CORE-V-VERIF
Projects
None yet
Development

No branches or pull requests

2 participants