blob: 9db9061d544907965f4866163014a8657e35c929 [file] [log] [blame]
/*
:name: attributes-case
:description: Assing attributes to a case statement
:should_fail: 0
:tags: 5.12
*/
module top();
reg [1:0] a;
bit b;
initial begin;
(* full_case, parallel_case *)
case (a)
2'b00 :
b = 0;
2'b01, 2'b10 :
b = 1;
default :
b = 0;
endcase
(* full_case = 1 *)
(* parallel_case = 1 *)
case (a)
2'b00 :
b = 0;
2'b01, 2'b10 :
b = 1;
default :
b = 0;
endcase
(* full_case, parallel_case = 0 *)
case (a)
2'b00 :
b = 0;
2'b01, 2'b10 :
b = 1;
default :
b = 0;
endcase
end
endmodule