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

New rule - use simple assertion expressions #19

Open
saanvipradhan opened this issue Nov 10, 2024 · 0 comments
Open

New rule - use simple assertion expressions #19

saanvipradhan opened this issue Nov 10, 2024 · 0 comments

Comments

@saanvipradhan
Copy link

From: https://www.linkedin.com/posts/abdullahrabbani_axi-protocols-activity-7260988942068391936-pGyi?utm_source=share&utm_medium=member_desktop

property r_ch;
 disable iff (!rstn) 
 @(posedge clk) $rose(RVALID) |-> ( $stable(RID) 
 && $stable(RDATA)
 && $stable(RRESP)
 && $stable(RLAST)) throughout RREADY[->1];
 endproperty

 assert property (r_ch); 

Use multiple , smalelr assertions than a complex consequent. e.g.
$rose(ARVALID) |-> ( $stable(ARID) ;
$rose(ARVALID) |-> $stable(ARADDR); etc.

This would help you debug using simple log file when only one of those READ channel signals is unstable (in case of your combined AND-ed expression you would need to dump, rerun etc.)

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