PULP Community
Accelerator wait function in BigPULP - Printable Version

+- PULP Community (https://pulp-platform.org/community)
+-- Forum: PULP's Community forum (https://pulp-platform.org/community/forumdisplay.php?fid=1)
+--- Forum: PULP General questions (https://pulp-platform.org/community/forumdisplay.php?fid=2)
+--- Thread: Accelerator wait function in BigPULP (/showthread.php?tid=61)



Accelerator wait function in BigPULP - Adi - 01-15-2019

Hi,

I'm developing an HWPE which is supposed to run with BigPULP.
I want to wait for my HWPE to finish executing from my C code. In pulpissimo, I used the following code:
Code:
soc_eu_fcEventMask_setEvent(ARCHI_SOC_EVENT_FCHWPE0);
__rt_periph_wait_event(ARCHI_SOC_EVENT_FCHWPE0, 1);

But with bigpulp, which I run on HERO, I have to use this API. I tried this code:
Code:
eu_evt_maskSet(ARCHI_CL_EVT_ACC0);
eu_evt_maskWaitAndClr(ARCHI_CL_EVT_ACC0);

I also tried other combinations of functions from this API, but none of the wait functions returns (even though my accelerator finished working).
Which functions do I need to use and how?

Thanks,
Adi


RE: Accelerator wait function in BigPULP - Adi - 01-16-2019

Thanks, I figured it out. It's supposed to be:
Code:
eu_evt_maskWaitAndClr(1 << ARCHI_CL_EVT_ACC0);



RE: Accelerator wait function in BigPULP - akurth - 01-25-2019

Thanks for posting your solution!