From a08e9d43eee72bb3143c9dad304c966e700be810 Mon Sep 17 00:00:00 2001 From: Kristofer Jonsson Date: Wed, 28 Apr 2021 12:32:28 +0200 Subject: Documenting startup and multi NPU Adding documentation and sequence diagrams for startup and multi NPU. Change-Id: I4a4a43e8bea089b6325f7d8285434017cbda25ec --- docs/multinpu.svg | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 docs/multinpu.svg (limited to 'docs/multinpu.svg') diff --git a/docs/multinpu.svg b/docs/multinpu.svg new file mode 100644 index 0000000..bc3b6b0 --- /dev/null +++ b/docs/multinpu.svg @@ -0,0 +1,95 @@ +ApplicationTensorflowEthos-U driverHardwaremain()main()TFLuTFLuEthos-U custom opEthos-U custom opDriverDriverCortex-MCortex-MEthos-UEthos-UInvoke()Eval()ethosu_reserve_driver()loop[Find and reserve driver]ethosu_mutex_lock()ethosu_find_and_reserve_driver()ethosu_mutex_unlock()alt[Found free driver]Return free driver[No driver available]ethosu_semaphore_take()Block on semaphoreethosu_invoke()Configure NPU and trigger inferencewait_for_irq()Driver sleeping waiting for IRQIRQethosu_irq_handler()Driver woken up by IRQ handlerethosu_release_driver()ethosu_mutex_lock()ethosu_semaphore_give()Wake up threads blocking on the semaphoreethosu_mutex_unlock() \ No newline at end of file -- cgit v1.2.1