gem5  v20.1.0.0
Macros
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; \

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.

TEST_TIME
#define TEST_TIME
Definition: define.h:41
CLOCK_PERIOD
#define CLOCK_PERIOD
Definition: define.h:38
sc_core::wait
void wait()
Definition: sc_module.cc:653
expected
std::vector< SwitchingFiber * > expected({ &a, &b, &a, &a, &a, &b, &c, &a, &c, &c, &c })

Generated on Wed Sep 30 2020 14:02:19 for gem5 by doxygen 1.8.17