blob: 004b715e0c82b064e03626ebef5e5352fc6c11e3 [file] [log] [blame]
module tristate (en, i, o);
input en;
input i;
output reg o;
always @(en or i)
o <= (en)? i : 1'bZ;
endmodule
module top (
input en,
input a,
output b
);
tristate u_tri (
.en (en ),
`ifndef BUG
.i (1'b0 ),
`else
.i (a ),
`endif
.o (b )
);
endmodule