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

COMPAT: SVA local var init missing #186

Open
svenka3 opened this issue Feb 3, 2024 · 0 comments
Open

COMPAT: SVA local var init missing #186

svenka3 opened this issue Feb 3, 2024 · 0 comments

Comments

@svenka3
Copy link
Collaborator

svenka3 commented Feb 3, 2024

https://verificationacademy.com/forums/t/requirement-to-initialize-dynamic-variables-within-property-sequence/46052

module top;

  bit clk , s1 , s2 ;
 
  
  property p_bad(s1, s2, len);
   int v_cnt;//=0; // Must be initialized !!
    (s1, v_cnt++)  |=> s2;
  endproperty
  
  property p_ok(s1, s2, len);
   int v_cnt =0; // Must be initialized !!
    (s1, v_cnt++)  |=> s2;
  endproperty
  
endmodule  
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

No branches or pull requests

1 participant