rohit_singh1
Junior Member level 3
Could anybody please tell me why in the code below because of the synthesis directive, the en input is optimized away during synthesis and left as a dangling input ?
Any help is appreciated.
TIA
Code:
module code4b (y, a, en);
output [3:0] y;
input [1:0] a;
input en;
reg [3:0] y;
always @(a or en) begin
y = 4'h0;
case ({en,a}) // synopsys full_case
3'b1_00: y[a] = 1'b1;
3'b1_01: y[a] = 1'b1;
3'b1_10: y[a] = 1'b1;
3'b1_11: y[a] = 1'b1;
endcase
end
endmodule
Any help is appreciated.
TIA