mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-24 22:07:41 -04:00
read/write test works with core_req_t
This commit is contained in:
parent
2fc65f4a7d
commit
8ffc65f22f
3 changed files with 104 additions and 64 deletions
12
hw/unit_tests/cache/cachesim.h
vendored
12
hw/unit_tests/cache/cachesim.h
vendored
|
@ -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_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue