How can I define a spyglass rule?

luoyanghero

Junior Member level 3
Joined
Nov 22, 2016
Messages
30
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
ShengXiaLu
Visit site
Activity points
2,499
For example the follow code, according condition_a, check whether have condition_b.
Is there a rule about this, if not, how can I create it?
always@(posedge clk or negedge condition_a) begin
if(condition_a)begin
data[1:0] <= #`DLY 0;
end
else if(condition_b)begin
data <= #`DLY 1;
end
else begin
data <= #`DLY 2;
end
end
 

Cookies are required to use this site. You must accept them to continue using the site. Learn more…