updates SCC and quantum keeper testcase
This commit is contained in:
2
scc
2
scc
Submodule scc updated: 7aa84b9561...f3961745af
@@ -39,6 +39,7 @@ int sc_main(int argc, char* argv[]) {
|
|||||||
top_module top_mod("top_module_inst");
|
top_module top_mod("top_module_inst");
|
||||||
// Start the simulation
|
// Start the simulation
|
||||||
sc_core::sc_start(20_us);
|
sc_core::sc_start(20_us);
|
||||||
|
SCCINFO() << "Simulation finished";
|
||||||
} else {
|
} else {
|
||||||
SCCERR() << "Some error occured";
|
SCCERR() << "Some error occured";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,9 +45,7 @@ private:
|
|||||||
SCCDEBUG(SCMOD) << "initiating b_transport at local time " << quantum_keeper.get_local_absolute_time();
|
SCCDEBUG(SCMOD) << "initiating b_transport at local time " << quantum_keeper.get_local_absolute_time();
|
||||||
quantum_keeper.execute_on_sysc([this, &gp, &t]() {
|
quantum_keeper.execute_on_sysc([this, &gp, &t]() {
|
||||||
SCCDEBUG(SCMOD) << "executing b_transport";
|
SCCDEBUG(SCMOD) << "executing b_transport";
|
||||||
auto t0 = sc_core::sc_time_stamp();
|
|
||||||
this->isckt->b_transport(gp, t);
|
this->isckt->b_transport(gp, t);
|
||||||
return t0 - sc_core::sc_time_stamp();
|
|
||||||
});
|
});
|
||||||
if(t.value()) {
|
if(t.value()) {
|
||||||
SCCDEBUG(SCMOD) << "incrementing local time by b_transport delay of " << t;
|
SCCDEBUG(SCMOD) << "incrementing local time by b_transport delay of " << t;
|
||||||
|
|||||||
Reference in New Issue
Block a user