For a ugate timing model, when tphlXX/tplhXX is not found, set the fall/rise delay to zero (1.0e-12).

This commit is contained in:
Brian Taylor 2023-03-04 11:08:09 -08:00 committed by Holger Vogt
parent 0e5a5a62ac
commit a6b2773c90
1 changed files with 6 additions and 6 deletions

View File

@ -2639,13 +2639,13 @@ static char *get_delays_ugate(char *rem)
if (has_falling) {
delays = tprintf("(inertial_delay=true rise_delay = %s fall_delay = %s)",
rising, falling);
} else { /* use rising for both rise/fall */
delays = tprintf("(inertial_delay=true rise_delay = %s fall_delay = %s)",
rising, rising);
} else {
delays = tprintf("(inertial_delay=true rise_delay = %s fall_delay = 1.0e-12)",
rising);
}
} else if (has_falling) { /* use falling for both rise/fall */
delays = tprintf("(inertial_delay=true rise_delay = %s fall_delay = %s)",
falling, falling);
} else if (has_falling) {
delays = tprintf("(inertial_delay=true rise_delay = 1.0e-12 fall_delay = %s)",
falling);
} else {
delays = get_zero_rise_fall();
}