mirror of
https://github.com/aolofsson/oh.git
synced 2025-01-30 02:32:53 +08:00
Readback cleanup
RX/TX interfaces should be mininmized and standalone Adding mux to consolidate to one "dout"
This commit is contained in:
parent
3b637e55f0
commit
b25ad633f7
24
elink/hdl/erx_mux.v
Normal file
24
elink/hdl/erx_mux.v
Normal file
@ -0,0 +1,24 @@
|
||||
module erx_mux (/*AUTOARG*/
|
||||
// Outputs
|
||||
mi_dout,
|
||||
// Inputs
|
||||
mi_clk, mi_en, mi_addr, mi_rx_cfg_dout, mi_rx_mailbox_dout,
|
||||
mi_rx_edma_dout, mi_rx_emmu_dout
|
||||
);
|
||||
|
||||
parameter DW = 32;
|
||||
parameter AW = 32;
|
||||
|
||||
//Needed for selecting data
|
||||
input mi_clk;
|
||||
input mi_en;
|
||||
input [19:0] mi_addr;
|
||||
|
||||
input [DW-1:0] mi_rx_cfg_dout;
|
||||
input [DW-1:0] mi_rx_mailbox_dout;
|
||||
input [DW-1:0] mi_rx_edma_dout;
|
||||
input [DW-1:0] mi_rx_emmu_dout;
|
||||
|
||||
output [DW-1:0] mi_dout;
|
||||
|
||||
endmodule // erx_mux
|
22
elink/hdl/etx_mux.v
Normal file
22
elink/hdl/etx_mux.v
Normal file
@ -0,0 +1,22 @@
|
||||
module etx_mux (/*AUTOARG*/
|
||||
// Outputs
|
||||
mi_dout,
|
||||
// Inputs
|
||||
mi_clk, mi_en, mi_addr, mi_tx_emmu_dout, mi_tx_cfg_dout
|
||||
);
|
||||
|
||||
parameter AW = 32;
|
||||
parameter DW = 32;
|
||||
|
||||
//Needed for selecting data
|
||||
input mi_clk;
|
||||
input mi_en;
|
||||
input [19:0] mi_addr;
|
||||
|
||||
input [DW-1:0] mi_tx_emmu_dout;
|
||||
input [DW-1:0] mi_tx_cfg_dout;
|
||||
|
||||
output [DW-1:0] mi_dout;
|
||||
|
||||
endmodule // etx_mux
|
||||
|
Loading…
x
Reference in New Issue
Block a user