xa_memory_standards.h
3.33 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#if 1
/*
* Copyright (c) 2006-2017 by Cadence Design Systems, Inc. ALL RIGHTS RESERVED.
* These coded instructions, statements, and computer programs are the
* copyrighted works and confidential proprietary information of
* Cadence Design Systems Inc. They may be adapted and modified by bona fide
* purchasers for internal use, but neither the original nor any adapted
* or modified version may be disclosed or distributed to third parties
* in any manner, medium, or form, in whole or in part, without the prior
* written consent of Cadence Design Systems Inc. This software and its
* derivatives are to be executed solely on products incorporating a Cadence
* Design Systems processor.
*/
#ifndef __XA_MEMORY_STANDARDS_H__
#define __XA_MEMORY_STANDARDS_H__
/*****************************************************************************/
/* Constant hash defines */
/*****************************************************************************/
/* when you don't need alignment, pass this to memory library */
#define XA_MEM_NO_ALIGN 0x01
/* standard memory types */
/* to be used inter frames */
#define XA_MEMTYPE_PERSIST 0x00
/* read write, to be used intra frames */
#define XA_MEMTYPE_SCRATCH 0x01
/* read only memory, intra frame */
#define XA_MEMTYPE_INPUT 0x02
/* read-write memory, for usable output, intra frame */
#define XA_MEMTYPE_OUTPUT 0x03
/* readonly memory, inter frame */
#define XA_MEMTYPE_TABLE 0x04
/* input buffer before mem tabs allocation */
#define XA_MEMTYPE_PRE_FRAME_INPUT 0x05
/* input buffer before mem tabs allocation */
#define XA_MEMTYPE_PRE_FRAME_SCRATCH 0x06
/* for local variables */
#define XA_MEMTYPE_AUTO_VAR 0x80
/* standard memory priorities */
#define XA_MEMPRIORITY_ANYWHERE 0x00
#define XA_MEMPRIORITY_LOWEST 0x01
#define XA_MEMPRIORITY_LOW 0x02
#define XA_MEMPRIORITY_NORM 0x03
#define XA_MEMPRIORITY_ABOVE_NORM 0x04
#define XA_MEMPRIORITY_HIGH 0x05
#define XA_MEMPRIORITY_HIGHER 0x06
#define XA_MEMPRIORITY_CRITICAL 0x07
/* standard memory placements */
/* placement is defined by 64 bits */
#define XA_MEMPLACE_FAST_RAM_0 0x000001
#define XA_MEMPLACE_FAST_RAM_1 0x000002
#define XA_MEMPLACE_FAST_RAM_2 0x000004
#define XA_MEMPLACE_FAST_RAM_3 0x000008
#define XA_MEMPLACE_FAST_RAM_4 0x000010
#define XA_MEMPLACE_FAST_RAM_5 0x000020
#define XA_MEMPLACE_FAST_RAM_6 0x000040
#define XA_MEMPLACE_FAST_RAM_7 0x000080
#define XA_MEMPLACE_INT_RAM_0 0x000100
#define XA_MEMPLACE_INT_RAM_1 0x000200
#define XA_MEMPLACE_INT_RAM_2 0x000400
#define XA_MEMPLACE_INT_RAM_3 0x000800
#define XA_MEMPLACE_INT_RAM_4 0x001000
#define XA_MEMPLACE_INT_RAM_5 0x002000
#define XA_MEMPLACE_INT_RAM_6 0x004000
#define XA_MEMPLACE_INT_RAM_7 0x008000
#define XA_MEMPLACE_EXT_RAM_0 0x010000
#define XA_MEMPLACE_EXT_RAM_1 0x020000
#define XA_MEMPLACE_EXT_RAM_2 0x040000
#define XA_MEMPLACE_EXT_RAM_3 0x080000
#define XA_MEMPLACE_EXT_RAM_4 0x100000
#define XA_MEMPLACE_EXT_RAM_5 0x200000
#define XA_MEMPLACE_EXT_RAM_6 0x400000
#define XA_MEMPLACE_EXT_RAM_7 0x800000
#define XA_MEMPLACE_DONTCARE_H 0xFFFFFFFF
#define XA_MEMPLACE_DONTCARE_L 0xFFFFFFFF
/* the simple common PC RAM */
#define XA_PC_RAM_H 0x00000000
#define XA_PC_RAM_L XA_MEMPLACE_EXT_RAM_0
#endif /* __XA_MEMORY_STANDARDS_H__ */
#endif