Go to the documentation of this file. 38 #define CLOCK_PERIOD 100 39 #define DUTY_CYCLE 0.5 43 #define long_wait wait(5*CLOCK_PERIOD) 44 #define single_cycle wait() 45 #define set_value(var,val) wait(EVENT_TIME); var = val; wait(CLOCK_PERIOD - EVENT_TIME) 46 #define test_value(actual, expected) \ 47 wait (TEST_TIME); if (expected != actual) \ 48 cout << "Mismatch. Expected: " << expected \ 49 << ". Actual: " << actual << endl; \ 50 wait (CLOCK_PERIOD - TEST_TIME) 51 #define test_value_now(actual, expected) \ 52 if (expected != actual) cout << "Mismatch. Expected: " << expected \ 53 << ". Actual: " << actual << endl;
Generated on Fri Feb 28 2020 16:27:05 for gem5 by doxygen 1.8.13