*/
#include "base/logging.hh"
+#include "base/types.hh"
#include "python/pybind11/pybind.hh"
#include "systemc/ext/core/sc_time.hh"
}
const sc_time
-operator + (const sc_time &, const sc_time &)
+operator + (const sc_time &a, const sc_time &b)
{
- warn("%s not implemented.\n", __PRETTY_FUNCTION__);
- return sc_time();
+ return sc_time::from_value(a.value() + b.value());
}
const sc_time
-operator - (const sc_time &, const sc_time &)
+operator - (const sc_time &a, const sc_time &b)
{
- warn("%s not implemented.\n", __PRETTY_FUNCTION__);
- return sc_time();
+ return sc_time::from_value(a.value() - b.value());
}
const sc_time
const sc_time &
sc_max_time()
{
- warn("%s not implemented.\n", __PRETTY_FUNCTION__);
- return *(const sc_time *)nullptr;
+ static const sc_time MaxScTime = sc_time::from_value(MaxTick);
+ return MaxScTime;
}
void