#define MAX_SIM_BUFF 8*1024
-#define MAX_CACHE_SIZE 2048
+#define MAX_CACHE_SIZE 4096
/* number of cache */
#define IMEM_CACHE 0
#define XMEM_CACHE 1
#define SREG_CACHE 2
-#define NMEM_CACHE 3
+#define CMEM_CACHE 3
+#define NMEM_CACHE 4
/* special index */
-#define BIT_CACHE 4
+#define BIT_CACHE 5
typedef struct _memcache
{