vt52-fpga  1.0.0 Initial
vt52-fpga is a serial terminal implemented on a FPGA
usb_fs_tx_mux.v
Go to the documentation of this file.
1 module usb_fs_tx_mux (
2  // interface to IN Protocol Engine
3  input in_tx_pkt_start,
4  input [3:0] in_tx_pid,
5 
6  // interface to OUT Protocol Engine
7  input out_tx_pkt_start,
8  input [3:0] out_tx_pid,
9 
10  // interface to tx module
11  output tx_pkt_start,
12  output [3:0] tx_pid
13 );
14  assign tx_pkt_start = in_tx_pkt_start | out_tx_pkt_start;
15  assign tx_pid = out_tx_pkt_start ? out_tx_pid : in_tx_pid;
16 endmodule
module usb_fs_tx_mux(input in_tx_pkt_start, input[4] in_tx_pid, input out_tx_pkt_start, input[4] out_tx_pid, output tx_pkt_start, output[4] tx_pid)
Definition: usb_fs_tx_mux.v:1