read/write test works with core_req_t

This commit is contained in:
trmontgomery 2020-07-18 19:25:03 -04:00
parent 2fc65f4a7d
commit 8ffc65f22f
3 changed files with 104 additions and 64 deletions

View file

@ -27,13 +27,12 @@ typedef struct {
} dram_req_t;
typedef struct {
bool valid = 1;
unsigned rw;
char valid;
char rw;
unsigned byteen;
unsigned int *addr[4];
unsigned int *data[4];
unsigned *addr;
unsigned *data;
unsigned tag;
bool responded;
} core_req_t;
class CacheSim {
@ -60,6 +59,7 @@ public:
void get_dram_req();
void get_core_rsp();
void get_core_req();
bool get_core_req_ready();
bool get_core_rsp_ready();
void get_dram_rsp();
@ -73,7 +73,7 @@ private:
void eval_rsps();
void eval_dram_bus();
std::queue<core_req_t*> core_reqq_;
std::queue<core_req_t*> core_req_vec_;
std::vector<dram_req_t> dram_rsp_vec_;
int dram_rsp_active_;