OpenCores
URL https://opencores.org/ocsvn/funbase_ip_library/funbase_ip_library/trunk

Subversion Repositories funbase_ip_library

[/] [funbase_ip_library/] [trunk/] [TUT/] [ip.hwp.communication/] [hibi_pe_dma/] [1.0/] [tb/] [system/] [src_cpu1/] [hpd_registers_conf.h] - Blame information for rev 145

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 145 lanttu
/*
2
 * File:   hpd_registers_conf.h
3
 * Author: Lasse Lehtonen
4
 * Date:   2012-01-13
5
 * Brief:  Defines the memory mapped address for HIBI PE DMA component
6
 *
7
 * Modify following addresses according to the SOPC configuration.
8
 * Following code assumes that tx buffer is first in the memory and rx buffer
9
 * follows that directly.
10
 *
11
 * Copy this file for every NIOS processor. Assumes only one HIBI PE
12
 * DMA component per avalon-MM bus.
13
 *
14
 */
15
 
16
#ifndef HPD_REGISTERS_CONF_H
17
#define HPD_REGISTERS_CONF_H
18
 
19
 
20
// HPD Avalon slave base address
21
#define HPD_REGISTERS_BASE_ADDRESS            ((void*) (0x80000000 | HIBI_PE_DMA_1_BASE))              
22
 
23
// Buffer start address in cpu's memory
24
#define HPD_REGISTERS_BUFFER_START            (0x80000000 | SHARED_MEM_1_BASE)
25
 
26
// Writeable tx buffer
27
#define HPD_REGISTERS_TX_BUFFER_START         (HPD_REGISTERS_BUFFER_START)
28
#define HPD_REGISTERS_TX_BUFFER_BYTE_LENGTH   (0x00000400)
29
#define HPD_REGISTERS_TX_BUFFER_END (HPD_REGISTERS_TX_BUFFER_START + \
30
                                     HPD_REGISTERS_TX_BUFFER_BYTE_LENGTH - 1)
31
 
32
// Readable rx buffer
33
#define HPD_REGISTERS_RX_BUFFER_START (HPD_REGISTERS_TX_BUFFER_START + \
34
                                       HPD_REGISTERS_TX_BUFFER_BYTE_LENGTH)
35
#define HPD_REGISTERS_RX_BUFFER_BYTE_LENGTH (0x00000C00)
36
#define HPD_REGISTERS_RX_BUFFER_END   (HPD_REGISTERS_RX_BUFFER_START + \
37
                                       HPD_REGISTERS_RX_BUFFER_BYTE_LENGTH - 1)
38
 
39
// HPD Interrupt registers, numbers and priorities
40
#define HPD_RX_IRQ             (2)
41
#define HPD_RX_IRQ_PRI         (3)
42
 
43
// HPD number of channels
44
#define HPD_NUMBER_OF_CHANNELS (8)
45
 
46
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.