forked from Brainchip-Inc/akida_dw_edma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cfg_dma_ram_phy_4MB.mk
25 lines (22 loc) · 1.18 KB
/
cfg_dma_ram_phy_4MB.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
AKIDA_DMA_RAM_PHY_ADDR = 0x20000000
AKIDA_DMA_RAM_PHY_OFFSET = 0x0
# Linked-list: 1MB at 0x000000000 offset, split in 4 area (512kB each)
AKIDA_DMA_RAM_PHY_TX0_LL_OFFSET = 0x00000000 + AKIDA_DMA_RAM_PHY_OFFSET
AKIDA_DMA_RAM_PHY_TX0_LL_SIZE = 0x40000
AKIDA_DMA_RAM_PHY_TX1_LL_OFFSET = 0x00040000 + AKIDA_DMA_RAM_PHY_OFFSET
AKIDA_DMA_RAM_PHY_TX1_LL_SIZE = 0x40000
AKIDA_DMA_RAM_PHY_RX0_LL_OFFSET = 0x00080000 + AKIDA_DMA_RAM_PHY_OFFSET
AKIDA_DMA_RAM_PHY_RX0_LL_SIZE = 0x40000
AKIDA_DMA_RAM_PHY_RX1_LL_OFFSET = 0x000C0000 + AKIDA_DMA_RAM_PHY_OFFSET
AKIDA_DMA_RAM_PHY_RX1_LL_SIZE = 0x40000
# Data: 3MB at 0x001000000 offset, split in 4 area (768kB each)
AKIDA_DMA_RAM_PHY_TX0_DT_OFFSET = 0x00100000 + AKIDA_DMA_RAM_PHY_OFFSET
AKIDA_DMA_RAM_PHY_TX0_DT_SIZE = 0xC0000
AKIDA_DMA_RAM_PHY_TX1_DT_OFFSET = 0x001C0000 + AKIDA_DMA_RAM_PHY_OFFSET
AKIDA_DMA_RAM_PHY_TX1_DT_SIZE = 0xC0000
AKIDA_DMA_RAM_PHY_RX0_DT_OFFSET = 0x00280000 + AKIDA_DMA_RAM_PHY_OFFSET
AKIDA_DMA_RAM_PHY_RX0_DT_SIZE = 0xC0000
AKIDA_DMA_RAM_PHY_RX1_DT_OFFSET = 0x00340000 + AKIDA_DMA_RAM_PHY_OFFSET
AKIDA_DMA_RAM_PHY_RX1_DT_SIZE = 0xC0000
# 4 MB used
AKIDA_DMA_RAM_PHY_SIZE = 0x00400000