2015-04-23 17:49:06 -04:00
|
|
|
module edma (/*AUTOARG*/
|
|
|
|
// Outputs
|
2016-01-11 17:35:53 -05:00
|
|
|
reg_rdata, access_out, packet_out,
|
2015-04-23 17:49:06 -04:00
|
|
|
// Inputs
|
2016-01-11 17:35:53 -05:00
|
|
|
nreset, clk, reg_access, reg_packet, wait_in
|
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
|
|
|
/*****************************/
|
2016-01-11 17:35:53 -05:00
|
|
|
input reg_access;
|
|
|
|
input [PW-1:0] reg_packet;
|
|
|
|
output [31:0] reg_rdata;
|
2015-05-01 17:30:08 -04:00
|
|
|
|
2015-04-23 17:49:06 -04:00
|
|
|
/*****************************/
|
|
|
|
/*DMA TRANSACTION */
|
|
|
|
/*****************************/
|
2016-01-11 17:35:53 -05:00
|
|
|
output access_out;
|
|
|
|
output [PW-1:0] packet_out;
|
|
|
|
input wait_in;
|
2015-05-01 17:30:08 -04:00
|
|
|
|
2015-11-06 16:51:57 -05:00
|
|
|
//Tieoffs for now
|
2016-01-11 17:35:53 -05:00
|
|
|
assign access_out = 'b0;
|
|
|
|
assign packet_out = '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:
|
|
|
|
|