quasar/InoutPort.v

9 lines
211 B
Coq
Raw Normal View History

2020-09-04 14:17:16 +08:00
module InoutPort( inout [15:0] a,
input [15:0] b,
input sel,
output [15:0] c);
assign a = sel ? 'bz : b;
assign c = sel ? a : 'bz;
endmodule