case (x)
2'b01 : y = 3'b001;
2'b10 : y = 3'b100;
default : y=3'b010;
endcase
C言語の
switch 〜 case 文
に相当