Fix indentation and white space.
This commit is contained in:
parent
53e8a139b0
commit
d364c5e903
|
|
@ -516,7 +516,7 @@ void vpiEndOfCompile(void) {
|
||||||
cur = EndOfCompile;
|
cur = EndOfCompile;
|
||||||
EndOfCompile = dynamic_cast<simulator_callback*>(cur->next);
|
EndOfCompile = dynamic_cast<simulator_callback*>(cur->next);
|
||||||
if (cur->cb_data.cb_rtn != 0) {
|
if (cur->cb_data.cb_rtn != 0) {
|
||||||
(cur->cb_data.cb_rtn)(&cur->cb_data);
|
(cur->cb_data.cb_rtn)(&cur->cb_data);
|
||||||
}
|
}
|
||||||
delete cur;
|
delete cur;
|
||||||
}
|
}
|
||||||
|
|
@ -538,7 +538,7 @@ void vpiStartOfSim(void) {
|
||||||
cur = StartOfSimulation;
|
cur = StartOfSimulation;
|
||||||
StartOfSimulation = dynamic_cast<simulator_callback*>(cur->next);
|
StartOfSimulation = dynamic_cast<simulator_callback*>(cur->next);
|
||||||
if (cur->cb_data.cb_rtn != 0) {
|
if (cur->cb_data.cb_rtn != 0) {
|
||||||
(cur->cb_data.cb_rtn)(&cur->cb_data);
|
(cur->cb_data.cb_rtn)(&cur->cb_data);
|
||||||
}
|
}
|
||||||
delete cur;
|
delete cur;
|
||||||
}
|
}
|
||||||
|
|
@ -559,10 +559,10 @@ void vpiPostsim(void) {
|
||||||
cur = EndOfSimulation;
|
cur = EndOfSimulation;
|
||||||
EndOfSimulation = dynamic_cast<simulator_callback*>(cur->next);
|
EndOfSimulation = dynamic_cast<simulator_callback*>(cur->next);
|
||||||
if (cur->cb_data.cb_rtn != 0) {
|
if (cur->cb_data.cb_rtn != 0) {
|
||||||
/* Only set the time if it is not NULL. */
|
/* Only set the time if it is not NULL. */
|
||||||
if (cur->cb_data.time)
|
if (cur->cb_data.time)
|
||||||
vpip_time_to_timestruct(cur->cb_data.time, schedule_simtime());
|
vpip_time_to_timestruct(cur->cb_data.time, schedule_simtime());
|
||||||
(cur->cb_data.cb_rtn)(&cur->cb_data);
|
(cur->cb_data.cb_rtn)(&cur->cb_data);
|
||||||
}
|
}
|
||||||
delete cur;
|
delete cur;
|
||||||
}
|
}
|
||||||
|
|
@ -612,37 +612,37 @@ static simulator_callback* make_prepost(p_cb_data data)
|
||||||
|
|
||||||
/* Insert at head of list */
|
/* Insert at head of list */
|
||||||
switch (data->reason) {
|
switch (data->reason) {
|
||||||
case cbEndOfCompile:
|
case cbEndOfCompile:
|
||||||
obj->next = EndOfCompile;
|
obj->next = EndOfCompile;
|
||||||
EndOfCompile = obj;
|
EndOfCompile = obj;
|
||||||
break;
|
break;
|
||||||
case cbStartOfSimulation:
|
case cbStartOfSimulation:
|
||||||
obj->next = StartOfSimulation;
|
obj->next = StartOfSimulation;
|
||||||
StartOfSimulation = obj;
|
StartOfSimulation = obj;
|
||||||
break;
|
break;
|
||||||
case cbEndOfSimulation:
|
case cbEndOfSimulation:
|
||||||
obj->next = EndOfSimulation;
|
obj->next = EndOfSimulation;
|
||||||
EndOfSimulation = obj;
|
EndOfSimulation = obj;
|
||||||
break;
|
break;
|
||||||
case cbNextSimTime:
|
case cbNextSimTime:
|
||||||
if (!data->time) {
|
if (!data->time) {
|
||||||
vpi_printf("ERROR: VPI: cbNextSimTime time pointer must be valid.\n");
|
vpi_printf("ERROR: VPI: cbNextSimTime time pointer must be valid.\n");
|
||||||
vpi_control(vpiFinish, 1);
|
vpi_control(vpiFinish, 1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (data->time->type == vpiSuppressTime) {
|
if (data->time->type == vpiSuppressTime) {
|
||||||
vpi_printf("ERROR: VPI: cbNextSimTime time type cannot be vpiSuppressTime.\n");
|
vpi_printf("ERROR: VPI: cbNextSimTime time type cannot be vpiSuppressTime.\n");
|
||||||
vpi_control(vpiFinish, 1);
|
vpi_control(vpiFinish, 1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (data->time->type == vpiScaledRealTime) {
|
if (data->time->type == vpiScaledRealTime) {
|
||||||
vpi_printf("ERROR: VPI: cbNextSimTime time type vpiScaledRealTime is not implemented.\n");
|
vpi_printf("ERROR: VPI: cbNextSimTime time type vpiScaledRealTime is not implemented.\n");
|
||||||
vpi_control(vpiFinish, 1);
|
vpi_control(vpiFinish, 1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
obj->next = NextSimTime;
|
obj->next = NextSimTime;
|
||||||
NextSimTime = obj;
|
NextSimTime = obj;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return obj;
|
return obj;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue