2015-04-23 17:49:06 -04:00
|
|
|
module edma (/*AUTOARG*/
|
|
|
|
// Outputs
|
2015-05-01 17:30:08 -04:00
|
|
|
mi_dout, edma_access, edma_packet,
|
2015-04-23 17:49:06 -04:00
|
|
|
// Inputs
|
2015-11-06 16:51:57 -05:00
|
|
|
nreset, clk, mi_en, mi_we, mi_addr, mi_din, edma_wait
|
2015-04-23 17:49:06 -04:00
|
|
|
);
|
|
|
|
|
|
|
|
/******************************/
|
|
|
|
/*Compile Time Parameters */
|
|
|
|
/******************************/
|
2015-05-01 17:30:08 -04:00
|
|
|
parameter RFAW = 6;
|
2015-04-23 17:49:06 -04:00
|
|
|
parameter AW = 32;
|
|
|
|
parameter DW = 32;
|
2015-05-01 17:30:08 -04:00
|
|
|
parameter PW = 104;
|
|
|
|
|
2015-04-23 17:49:06 -04:00
|
|
|
/******************************/
|
|
|
|
/*HARDWARE RESET (EXTERNAL) */
|
|
|
|
/******************************/
|
2015-11-06 16:51:57 -05:00
|
|
|
input nreset; //async reset
|
2015-05-01 17:30:08 -04:00
|
|
|
input clk;
|
|
|
|
|
2015-04-23 17:49:06 -04:00
|
|
|
/*****************************/
|
|
|
|
/*REGISTER INTERFACE */
|
2015-05-01 17:30:08 -04:00
|
|
|
/*****************************/
|
|
|
|
input mi_en;
|
|
|
|
input mi_we;
|
|
|
|
input [RFAW+1:0] mi_addr;
|
|
|
|
input [63:0] mi_din;
|
|
|
|
output [31:0] mi_dout;
|
|
|
|
|
2015-04-23 17:49:06 -04:00
|
|
|
/*****************************/
|
|
|
|
/*DMA TRANSACTION */
|
|
|
|
/*****************************/
|
2015-05-01 17:30:08 -04:00
|
|
|
output edma_access;
|
|
|
|
output [PW-1:0] edma_packet;
|
|
|
|
input edma_wait;
|
|
|
|
|
2015-11-06 16:51:57 -05:00
|
|
|
//Tieoffs for now
|
|
|
|
assign edma_access = 'b0;
|
|
|
|
assign edma_packet = 'd0;
|
|
|
|
assign mi_dout = 'd0;
|
2015-04-28 16:54:09 -04:00
|
|
|
|
2015-04-23 17:49:06 -04:00
|
|
|
endmodule // edma
|
|
|
|
// Local Variables:
|
|
|
|
// verilog-library-directories:("." "../../common/hdl")
|
|
|
|
// End:
|
|
|
|
|