Add ability to avoid startup delay on 1st to 2nd PD issue

This commit is contained in:
Dave Steele 2022-12-16 14:51:44 +00:00
commit 9765aea0ec

View file

@ -157,13 +157,13 @@ protected:
// Generate a set of product detects
// spaced at a given period
//
void generatePDs(CCoreAuto* pCore, uint32_t numPDs, uint32_t periodNs)
void generatePDs(CCoreAuto* pCore, uint32_t numPDs, uint32_t periodNs, bool noStartupDelay = false)
{
for (int idx = 0; idx < numPDs; idx++)
{
issuePd(pCore->pEncPdEmul1);
if (idx == 0)
if ((idx == 0) && !noStartupDelay)
{
nsleepSim(periodNs - REG_WR_LATENCY_NS + STARTUP_LATENCY_NS);
}