URL
https://opencores.org/ocsvn/wb_dma/wb_dma/trunk
Subversion Repositories wb_dma
[/] [wb_dma/] [trunk/] [rtl/] [verilog/] [wb_dma_defines.v] - Rev 5
Go to most recent revision | Compare with Previous | Blame | View Log
///////////////////////////////////////////////////////////////////// //// //// //// WISHBONE DMA Definitions //// //// //// //// //// //// Author: Rudolf Usselmann //// //// rudi@asics.ws //// //// //// //// //// //// Downloaded from: http://www.opencores.org/cores/wb_dma/ //// //// //// ///////////////////////////////////////////////////////////////////// //// //// //// Copyright (C) 2001 Rudolf Usselmann //// //// rudi@asics.ws //// //// //// //// This source file may be used and distributed without //// //// restriction provided that this copyright statement is not //// //// removed from the file and that any derivative work contains //// //// the original copyright notice and the associated disclaimer.//// //// //// //// THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY //// //// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED //// //// TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS //// //// FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL THE AUTHOR //// //// OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, //// //// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES //// //// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE //// //// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR //// //// BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF //// //// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT //// //// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT //// //// OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE //// //// POSSIBILITY OF SUCH DAMAGE. //// //// //// ///////////////////////////////////////////////////////////////////// // CVS Log // // $Id: wb_dma_defines.v,v 1.1 2001-07-29 08:57:02 rudi Exp $ // // $Date: 2001-07-29 08:57:02 $ // $Revision: 1.1 $ // $Author: rudi $ // $Locker: $ // $State: Exp $ // // Change History: // $Log: not supported by cvs2svn $ // Revision 1.2 2001/06/05 10:22:37 rudi // // // - Added Support of up to 31 channels // - Added support for 2,4 and 8 priority levels // - Now can have up to 31 channels // - Added many configuration items // - Changed reset to async // // Revision 1.1.1.1 2001/03/19 13:11:09 rudi // Initial Release // // // `timescale 1ns / 10ps // Identify how many channels are in this implementation `define CH_COUNT 4 `define HAVE_CH1 1 `define HAVE_CH2 1 `define HAVE_CH3 1 /* `define HAVE_CH4 1 `define HAVE_CH5 1 `define HAVE_CH6 1 `define HAVE_CH7 1 `define HAVE_CH8 1 `define HAVE_CH9 1 `define HAVE_CH10 1 `define HAVE_CH11 1 `define HAVE_CH12 1 `define HAVE_CH13 1 `define HAVE_CH14 1 `define HAVE_CH15 1 `define HAVE_CH16 1 `define HAVE_CH17 1 `define HAVE_CH18 1 `define HAVE_CH19 1 `define HAVE_CH20 1 `define HAVE_CH21 1 `define HAVE_CH22 1 `define HAVE_CH23 1 `define HAVE_CH24 1 `define HAVE_CH25 1 `define HAVE_CH26 1 `define HAVE_CH27 1 `define HAVE_CH28 1 `define HAVE_CH29 1 `define HAVE_CH30 1 */ `define HAVE_ARS0 1 `define HAVE_ARS1 1 `define HAVE_ARS2 1 `define HAVE_ARS3 1 `define HAVE_ARS4 1 `define HAVE_ARS5 1 `define HAVE_ARS6 1 `define HAVE_ARS7 1 `define HAVE_ARS8 1 `define HAVE_ARS9 1 `define HAVE_ARS10 1 `define HAVE_ARS11 1 `define HAVE_ARS12 1 `define HAVE_ARS13 1 `define HAVE_ARS14 1 `define HAVE_ARS15 1 `define HAVE_ARS16 1 `define HAVE_ARS17 1 `define HAVE_ARS18 1 `define HAVE_ARS19 1 `define HAVE_ARS20 1 `define HAVE_ARS21 1 `define HAVE_ARS22 1 `define HAVE_ARS23 1 `define HAVE_ARS24 1 `define HAVE_ARS25 1 `define HAVE_ARS26 1 `define HAVE_ARS27 1 `define HAVE_ARS28 1 `define HAVE_ARS29 1 `define HAVE_ARS30 1 `define HAVE_ED0 1 `define HAVE_ED1 1 `define HAVE_ED2 1 `define HAVE_ED3 1 `define HAVE_ED4 1 `define HAVE_ED5 1 `define HAVE_ED6 1 `define HAVE_ED7 1 `define HAVE_ED8 1 `define HAVE_ED9 1 `define HAVE_ED10 1 `define HAVE_ED11 1 `define HAVE_ED12 1 `define HAVE_ED13 1 `define HAVE_ED14 1 `define HAVE_ED15 1 `define HAVE_ED16 1 `define HAVE_ED17 1 `define HAVE_ED18 1 `define HAVE_ED19 1 `define HAVE_ED20 1 `define HAVE_ED21 1 `define HAVE_ED22 1 `define HAVE_ED23 1 `define HAVE_ED24 1 `define HAVE_ED25 1 `define HAVE_ED26 1 `define HAVE_ED27 1 `define HAVE_ED28 1 `define HAVE_ED29 1 `define HAVE_ED30 1 `define HAVE_CBUF0 1 `define HAVE_CBUF1 1 `define HAVE_CBUF2 1 `define HAVE_CBUF3 1 `define HAVE_CBUF4 1 `define HAVE_CBUF5 1 `define HAVE_CBUF6 1 `define HAVE_CBUF7 1 `define HAVE_CBUF8 1 `define HAVE_CBUF9 1 `define HAVE_CBUF10 1 `define HAVE_CBUF11 1 `define HAVE_CBUF12 1 `define HAVE_CBUF13 1 `define HAVE_CBUF14 1 `define HAVE_CBUF15 1 `define HAVE_CBUF16 1 `define HAVE_CBUF17 1 `define HAVE_CBUF18 1 `define HAVE_CBUF19 1 `define HAVE_CBUF20 1 `define HAVE_CBUF21 1 `define HAVE_CBUF22 1 `define HAVE_CBUF23 1 `define HAVE_CBUF24 1 `define HAVE_CBUF25 1 `define HAVE_CBUF26 1 `define HAVE_CBUF27 1 `define HAVE_CBUF28 1 `define HAVE_CBUF29 1 `define HAVE_CBUF30 1 // The two define statements below select the number of priorities // that the DMA engine supports. // if PRI_8 is defined, 8 levels of priorities are supported. If PRI_4 // is defined then 4 levels of priorities are supported. If neither is // defined then two levels of priorities are supported. // PRI_4 and PRI_8 should never be both defined at the same time. //`define PRI_8 1 `define PRI_4 1 // This define selects how the slave interface determines if // the internal register file or pass through mode are selected. // This should be a simple address decoder. "wb_addr_i" is the // WISHBONE address bus (32 bits wide). // NOTE: The entire pass-through mode is implemented in combinatorial // logic only. So the more address lines we look at and compare here // the higher will be the initial delay when pass-through mode is selected. // Here we look at the top 8 address bit. If they are all 1, the // register file is selected. Use this with caution !!! `define REG_SEL (wb_addr_i[31:24] == 8'hff) // CSR Bits `define CH_EN 0 `define DST_SEL 1 `define SRC_SEL 2 `define INC_DST 3 `define INC_SRC 4 `define MODE 5 `define ARS 6 `define USE_ED 7 `define WRB 8 `define STOP 9 `define BUSY 10 `define DONE 11 `define ERR 12 `define ED_EOL 20
Go to most recent revision | Compare with Previous | Blame | View Log