Forum Discussion
Altera_Forum
Honored Contributor
14 years agoIn SystemVerilog you can use the unique attribute to if else if else statement.
always @(posedge clk or negedge rst)begin
if(!rst)begin
.....
end
else begin
unique if(a)
....
else if(b)
....
else if(c)
....
end
endDuring simulation you will get error if any of a, b or c are true simultaneously.