Plexiglas1
Newbie

I'm trying to minimize logic and make the (ASIC) synthesis tool merge the 2'b11 case's logic with the previous ones, as I don't care about that case.
I know I can make the second-to-last statement the default, but that might not be optimal in terms of logic in the general case.
This is a minimal example of what I'm trying to do, so don't worry about the specifics of this concrete example.
Are the statements equivalent and are they doing what I want them to?
I know I can make the second-to-last statement the default, but that might not be optimal in terms of logic in the general case.
This is a minimal example of what I'm trying to do, so don't worry about the specifics of this concrete example.
Are the statements equivalent and are they doing what I want them to?
Code:
case(cond)
2'b00: result = v1;
2'b01: result = v2;
2'b10: result = v3;
default: result = 'x;
endcase
unique case(cond)
2'b00: result = v1;
2'b01: result = v2;
2'b10: result = v3;
endcase