E
eruisi
Guest
Ik gebruik PLI1.0 voor NCVerilog in een eenvoudig ontwerp, maar om een aantal fouten.
Hier is mijn PLI functie in C:
Code:int my_timing ()
(
handvat poort;
dubbele 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 oud vertraging: Rise-% f, val-% f \ n", acc_fetch_fullname (poort), new_rise, new_fall);new_rise = acc_fetch_tfarg (2);
new_fall = acc_fetch_tfarg (3);
acc_replace_delays (poort, new_rise, new_fall);
acc_fetch_delays (gate, & new_rise, & new_fall);
io_printf ( "Gate% s nieuwe vertraging: Rise-% f, val-% f \ n", acc_fetch_fullname (poort), new_rise, new_fall);
acc_close ()
Hier is mijn PLI functie in C:
Code:int my_timing ()
(
handvat poort;
dubbele 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 oud vertraging: Rise-% f, val-% f \ n", acc_fetch_fullname (poort), new_rise, new_fall);new_rise = acc_fetch_tfarg (2);
new_fall = acc_fetch_tfarg (3);
acc_replace_delays (poort, new_rise, new_fall);
acc_fetch_delays (gate, & new_rise, & new_fall);
io_printf ( "Gate% s nieuwe vertraging: Rise-% f, val-% f \ n", acc_fetch_fullname (poort), new_rise, new_fall);
acc_close ()