mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-24 13:57:17 -04:00
added assert_equal to read/write test
This commit is contained in:
parent
ed3a0cfa4d
commit
3e8179f37f
3 changed files with 36 additions and 28 deletions
6
hw/unit_tests/cache/cachesim.h
vendored
6
hw/unit_tests/cache/cachesim.h
vendored
|
@ -32,7 +32,7 @@ typedef struct {
|
|||
unsigned byteen;
|
||||
unsigned *addr;
|
||||
unsigned *data;
|
||||
unsigned tag;
|
||||
unsigned int tag;
|
||||
} core_req_t;
|
||||
|
||||
class CacheSim {
|
||||
|
@ -51,9 +51,7 @@ public:
|
|||
void run(); //run until all reqs are empty
|
||||
void clear_req();
|
||||
void send_req(core_req_t *req);
|
||||
|
||||
void set_core_req();
|
||||
void set_core_req2();
|
||||
bool assert_equal(unsigned int* data, unsigned int tag);
|
||||
|
||||
//display funcs
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue