gem5 v24.0.0.0
Loading...
Searching...
No Matches
define.h File Reference

Go to the source code of this file.

Macros

#define CLOCK_PERIOD   100
 
#define DUTY_CYCLE   0.5
 
#define EVENT_TIME   50
 
#define TEST_TIME   50
 
#define long_wait   wait(5*CLOCK_PERIOD)
 
#define single_cycle   wait()
 
#define set_value(var, val)   wait(EVENT_TIME); var = val; wait(CLOCK_PERIOD - EVENT_TIME)
 
#define test_value(actual, expected)
 
#define test_value_now(actual, expected)
 

Macro Definition Documentation

◆ CLOCK_PERIOD

#define CLOCK_PERIOD   100

Definition at line 38 of file define.h.

◆ DUTY_CYCLE

#define DUTY_CYCLE   0.5

Definition at line 39 of file define.h.

◆ EVENT_TIME

#define EVENT_TIME   50

Definition at line 40 of file define.h.

◆ long_wait

#define long_wait   wait(5*CLOCK_PERIOD)

Definition at line 43 of file define.h.

◆ set_value

#define set_value ( var,
val )   wait(EVENT_TIME); var = val; wait(CLOCK_PERIOD - EVENT_TIME)

Definition at line 45 of file define.h.

◆ single_cycle

#define single_cycle   wait()

Definition at line 44 of file define.h.

◆ TEST_TIME

#define TEST_TIME   50

Definition at line 41 of file define.h.

◆ test_value

#define test_value ( actual,
expected )
Value:
wait (TEST_TIME); if (expected != actual) \
cout << "Mismatch. Expected: " << expected \
<< ". Actual: " << actual << endl; \
std::vector< SwitchingFiber * > expected({ &a, &b, &a, &a, &a, &b, &c, &a, &c, &c, &c })
#define TEST_TIME
Definition define.h:41
#define CLOCK_PERIOD
Definition define.h:38

Definition at line 46 of file define.h.

◆ test_value_now

#define test_value_now ( actual,
expected )
Value:
if (expected != actual) cout << "Mismatch. Expected: " << expected \
<< ". Actual: " << actual << endl;

Definition at line 51 of file define.h.


Generated on Tue Jun 18 2024 16:24:08 for gem5 by doxygen 1.11.0