⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gendc.h

📁 用VHDL语言实现的ARM处理器的标准内核的源代码程序
💻 H
字号:
#ifndef GENDC_H
#define GENDC_H

typedef struct _cache_tags {
  unsigned int tag;
  unsigned int dirty;
  unsigned int valid;
  unsigned int lock;
} cache_tags;

typedef struct _data_cache {
  int sz_set,nr_sets,sz_tline,sz_set_log,sz_tline_log;
  unsigned int addrmask,tlinemask;
  unsigned char *sets[4];
  cache_tags    *tags[4];
  unsigned int setrepcnt;
  unsigned int writeback;
  unsigned int allocateonstore;
} data_cache;

/* in gendc.c */
data_cache *gendc_create(int size_kb, int nr_sets, int size_tline);
int gendc_read(data_cache *c,unsigned int addr,unsigned int *data);
int gendc_write(data_cache *c,unsigned int addr,unsigned int data);


#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -