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 agoMake sure though that only A, B, or C can be asserted at any given time, otherwise that "one-hot" encoding will fail and the default case will be used. In other words, using the example above if C,B,A (concatenated together) came out to anything but 001, 010, or 100, then the default expression would be decoded.