blob: 5716b46bbc1d14457c4361755b8a46644edc875e [file] [log] [blame]
module usb_fs_tx_mux (
// interface to IN Protocol Engine
input in_tx_pkt_start,
input [3:0] in_tx_pid,
// interface to OUT Protocol Engine
input out_tx_pkt_start,
input [3:0] out_tx_pid,
// interface to tx module
output tx_pkt_start,
output [3:0] tx_pid
);
assign tx_pkt_start = in_tx_pkt_start | out_tx_pkt_start;
assign tx_pid = out_tx_pkt_start ? out_tx_pid : in_tx_pid;
endmodule