Forum Discussion
Altera_Forum
Honored Contributor
14 years agosynthesis of several "if..if...if "sentence.
always @(posedge clk or negedge rst)begin if(!rst)begin ..... end else begin if(a) .... if(b) .... if(c) .... end end I found tha...
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.