added assert_equal to read/write test

This commit is contained in:
trmontgomery 2020-07-19 00:34:44 -04:00
parent ed3a0cfa4d
commit 3e8179f37f
3 changed files with 36 additions and 28 deletions

View file

@ -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