eruisi
Member level 4
acc_fetch_delays
I am using PLI1.0 for NCVerilog in a simple design but getting some errors.
Here is my PLI function in C:
but I got the following mssages in my NCverilog simulation:
ncsim> run
ERROR: ACC AGPDNMP
Getting primitive delay information has not been implemented yet.
./top.v, 10: $my_timing(nd1,0.100000,0.100000)
Gate nand4.nd1 old delay: rise-0.000000, fall-0.000000
ERROR: ACC APPDNMP
Annotating primitive delays has not been implemented yet.
./top.v, 10: $my_timing(nd1,0.100000,0.100000)
ERROR: ACC AGPDNMP
Getting primitive delay information has not been implemented yet.
./top.v, 10: $my_timing(nd1,0.100000,0.100000)
Gate nand4.nd1 new delay: rise-0.100000, fall-0.100000
ncsim: *W,RNQUIE: Simulation is complete.
It seems to me the gate delay has been updated with new value but why there are error messages for acc_fetch_delays() and acc_replace_delays()?
I did include -ANNO_SIMTIME option in ncelab command line
Thanks for your kindly help!
I am using PLI1.0 for NCVerilog in a simple design but getting some errors.
Here is my PLI function in C:
Code:
int my_timing()
{
handle gate;
double new_rise, new_fall;
acc_initialize();
acc_configure(accToHiZDelay, "max");
gate = acc_handle_tfarg(1);
acc_fetch_delays(gate, &new_rise, &new_fall);
io_printf("Gate %s old delay: rise-%f, fall-%f\n", acc_fetch_fullname(gate), new_rise,new_fall);
new_rise = acc_fetch_tfarg(2);
new_fall = acc_fetch_tfarg(3);
acc_replace_delays(gate, new_rise, new_fall);
acc_fetch_delays(gate, &new_rise, &new_fall);
io_printf("Gate %s new delay: rise-%f, fall-%f\n", acc_fetch_fullname(gate), new_rise,new_fall);
acc_close();
}
but I got the following mssages in my NCverilog simulation:
ncsim> run
ERROR: ACC AGPDNMP
Getting primitive delay information has not been implemented yet.
./top.v, 10: $my_timing(nd1,0.100000,0.100000)
Gate nand4.nd1 old delay: rise-0.000000, fall-0.000000
ERROR: ACC APPDNMP
Annotating primitive delays has not been implemented yet.
./top.v, 10: $my_timing(nd1,0.100000,0.100000)
ERROR: ACC AGPDNMP
Getting primitive delay information has not been implemented yet.
./top.v, 10: $my_timing(nd1,0.100000,0.100000)
Gate nand4.nd1 new delay: rise-0.100000, fall-0.100000
ncsim: *W,RNQUIE: Simulation is complete.
It seems to me the gate delay has been updated with new value but why there are error messages for acc_fetch_delays() and acc_replace_delays()?
I did include -ANNO_SIMTIME option in ncelab command line
Thanks for your kindly help!