1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-30 02:32:53 +08:00
oh/elink/hdl/erx_mux.v
Andreas Olofsson f544c44a08 Adding register access from RX
-Access without symmetry was awkward, now we can reach regs from TX or RX side
-Removes a special path for mailbox (came for free)
-At the same time reduced clock complexity (one clock for system!!)
-Moved mailbox to top level
-Changed main clock to "sys_clk" for all
2015-04-27 23:51:00 -04:00

25 lines
470 B
Verilog

module erx_mux (/*AUTOARG*/
// Outputs
mi_dout,
// Inputs
sys_clk, mi_en, mi_addr, mi_rx_cfg_dout, mi_rx_edma_dout,
mi_rx_emmu_dout
);
parameter DW = 32;
parameter AW = 32;
input sys_clk;
//Needed for selecting data
input mi_en;
input [19:0] mi_addr;
input [DW-1:0] mi_rx_cfg_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