gem5  v20.1.0.0
Macros
define.h File Reference

Go to the source code of this file.

Macros

#define CLOCK_PERIOD   100
 
#define TB_CLOCK_PERIOD   50
 
#define DUTY_CYCLE   0.5
 
#define EVENT_TIME   50
 
#define TEST_TIME   50
 
#define long_wait   wait(10)
 
#define single_cycle   wait(2)
 
#define set_value(var, val)   wait(); var = val; wait()
 
#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 40 of file define.h.

◆ EVENT_TIME

#define EVENT_TIME   50

Definition at line 41 of file define.h.

◆ long_wait

#define long_wait   wait(10)

Definition at line 44 of file define.h.

◆ set_value

#define set_value (   var,
  val 
)    wait(); var = val; wait()

Definition at line 46 of file define.h.

◆ single_cycle

#define single_cycle   wait(2)

Definition at line 45 of file define.h.

◆ TB_CLOCK_PERIOD

#define TB_CLOCK_PERIOD   50

Definition at line 39 of file define.h.

◆ TEST_TIME

#define TEST_TIME   50

Definition at line 42 of file define.h.

◆ test_value

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

Definition at line 47 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 52 of file define.h.

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