1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-17 20:02:53 +08:00
oh/elink/hdl/etx_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

24 lines
444 B
Verilog

module etx_mux (/*AUTOARG*/
// Outputs
mi_dout,
// Inputs
sys_clk, reset, mi_en, mi_addr, mi_tx_emmu_dout, mi_tx_cfg_dout
);
parameter AW = 32;
parameter DW = 32;
//Needed for selecting data
input sys_clk;
input reset;
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