interactive debugging of dynamic dataflow embedded
play

Interactive Debugging of Dynamic Dataflow Embedded Applications. - PowerPoint PPT Presentation

s t m i c r o e l e c t r o n i c s , u n i v e r s i t y o f g r e n o b l e / l i g l a b o r a t o r y STMicroelectronics LIG University of Grenoble Interactive Debugging of Dynamic Dataflow Embedded Applications. Kevin Pouget, Patricia


  1. s t m i c r o e l e c t r o n i c s , u n i v e r s i t y o f g r e n o b l e / l i g l a b o r a t o r y STMicroelectronics LIG University of Grenoble Interactive Debugging of Dynamic Dataflow Embedded Applications. Kevin Pouget, Patricia Lopez Cueva, Miguel Santana, Jean-François Méhaut HIPS’13, Boston, USA — May 20 th 2013

  2. s t m i c r o e l e c t r o n i c s , u n i v e r s i t y o f g r e n o b l e / l i g l a b o r a t o r y Technological Context Embedded System Development • High-resolution multimedia app. ⇒ high performance expectations. • H.265 HEVC • Augmented reality, • 4K digital television • . . . • Sharp time-to-market constraints ⇒ Important demand for • Powerful parallel architectures • MultiProcessor on Chip (MPSoC) • Convenient programming methodologies • Dynamic dataflow programming • Efficient verification and validation tools • Our research contribution Slide 2 — kevin.pouget@st.com — Dynamic Dataflow Applications Debugging — HIPS’13, Boston, USA — May 20 th 2013

  3. s t m i c r o e l e c t r o n i c s , u n i v e r s i t y o f g r e n o b l e / l i g l a b o r a t o r y Technological Context MultiProcessor on Chip (MPSoC) • Parallel architecture • More difficult to program • Maybe heterogeneous • Application-specific processors, • Hardware accelerators, • GPU-like architecture (OS-less processors) • Embedded system • Constrained environment, • On-board debugging complicated → performance debugging only • Limited-scale functional debugging on simulators Slide 3 — kevin.pouget@st.com — Dynamic Dataflow Applications Debugging — HIPS’13, Boston, USA — May 20 th 2013

  4. s t m i c r o e l e c t r o n i c s , u n i v e r s i t y o f g r e n o b l e / l i g l a b o r a t o r y Technological Context Dataflow Programming • Alternative to von Neumann model ( ↔ C/ASM) • Instructions executed when their operands a are ready, not when the Instruction Pointer (aka. Program Counter, %PC) reaches it. + + * ⇒ Inherently parallel ⇒ Today: coarser granularity, with imperative/object instruction blocks a operand == token == message Slide 4 — kevin.pouget@st.com — Dynamic Dataflow Applications Debugging — HIPS’13, Boston, USA — May 20 th 2013

  5. s t m i c r o e l e c t r o n i c s , u n i v e r s i t y o f g r e n o b l e / l i g l a b o r a t o r y Technological Context Dataflow Programming • Alternative to von Neumann model ( ↔ C/ASM) • Instructions executed when their operands a are ready, not when the Instruction Pointer 5 (aka. Program Counter, %PC) reaches it. + + * ⇒ Inherently parallel ⇒ Today: coarser granularity, with imperative/object instruction blocks a operand == token == message Slide 4 — kevin.pouget@st.com — Dynamic Dataflow Applications Debugging — HIPS’13, Boston, USA — May 20 th 2013

  6. s t m i c r o e l e c t r o n i c s , u n i v e r s i t y o f g r e n o b l e / l i g l a b o r a t o r y Technological Context Dataflow Programming • Alternative to von Neumann model ( ↔ C/ASM) • Instructions executed when their operands a are ready, not when the Instruction Pointer 5 7 (aka. Program Counter, %PC) reaches it. + + * ⇒ Inherently parallel ⇒ Today: coarser granularity, with imperative/object instruction blocks a operand == token == message Slide 4 — kevin.pouget@st.com — Dynamic Dataflow Applications Debugging — HIPS’13, Boston, USA — May 20 th 2013

  7. s t m i c r o e l e c t r o n i c s , u n i v e r s i t y o f g r e n o b l e / l i g l a b o r a t o r y Technological Context Dataflow Programming • Alternative to von Neumann model ( ↔ C/ASM) • Instructions executed when their operands a are ready, not when the Instruction Pointer 2 3 (aka. Program Counter, %PC) reaches it. + + * ⇒ Inherently parallel (“2 PCs” here) ⇒ Today: coarser granularity, with imperative/object instruction blocks a operand == token == message Slide 4 — kevin.pouget@st.com — Dynamic Dataflow Applications Debugging — HIPS’13, Boston, USA — May 20 th 2013

  8. s t m i c r o e l e c t r o n i c s , u n i v e r s i t y o f g r e n o b l e / l i g l a b o r a t o r y Technological Context Dataflow Programming • Alternative to von Neumann model ( ↔ C/ASM) • Instructions executed when their operands a are ready, not when the Instruction Pointer (aka. Program Counter, %PC) reaches it. + + 5 * ⇒ Inherently parallel ⇒ Today: coarser granularity, with imperative/object instruction blocks a operand == token == message Slide 4 — kevin.pouget@st.com — Dynamic Dataflow Applications Debugging — HIPS’13, Boston, USA — May 20 th 2013

  9. s t m i c r o e l e c t r o n i c s , u n i v e r s i t y o f g r e n o b l e / l i g l a b o r a t o r y Technological Context Dataflow Programming • Alternative to von Neumann model ( ↔ C/ASM) • Instructions executed when their operands a are ready, not when the Instruction Pointer (aka. Program Counter, %PC) reaches it. + + 12 5 * ⇒ Inherently parallel ⇒ Today: coarser granularity, with imperative/object instruction blocks a operand == token == message Slide 4 — kevin.pouget@st.com — Dynamic Dataflow Applications Debugging — HIPS’13, Boston, USA — May 20 th 2013

  10. s t m i c r o e l e c t r o n i c s , u n i v e r s i t y o f g r e n o b l e / l i g l a b o r a t o r y Technological Context Dataflow Programming • Alternative to von Neumann model ( ↔ C/ASM) • Instructions executed when their operands a are ready, not when the Instruction Pointer (aka. Program Counter, %PC) reaches it. + + * ⇒ Inherently parallel 60 ⇒ Today: coarser granularity, with imperative/object instruction blocks a operand == token == message Slide 4 — kevin.pouget@st.com — Dynamic Dataflow Applications Debugging — HIPS’13, Boston, USA — May 20 th 2013

  11. s t m i c r o e l e c t r o n i c s , u n i v e r s i t y o f g r e n o b l e / l i g l a b o r a t o r y Technological Context Dataflow Programming • Alternative to von Neumann model ( ↔ C/ASM) • Instructions executed when their operands a are ready, not when the Instruction Pointer (aka. Program Counter, %PC) reaches it. + + * ⇒ Inherently parallel 60 ⇒ Today: coarser granularity, with imperative/object instruction blocks a operand == token == message Slide 4 — kevin.pouget@st.com — Dynamic Dataflow Applications Debugging — HIPS’13, Boston, USA — May 20 th 2013

  12. s t m i c r o e l e c t r o n i c s , u n i v e r s i t y o f g r e n o b l e / l i g l a b o r a t o r y Technological Context Different Dataflow Models Decidable Dataflow • Correctness analysis but: • Deadlock-free static scheduling • Strong constraints imposed to dev. • Reduced expressiveness • Powerful optimization • no dynamic problem Dynamic Dataflow Slide 5 — kevin.pouget@st.com — Dynamic Dataflow Applications Debugging — HIPS’13, Boston, USA — May 20 th 2013

  13. s t m i c r o e l e c t r o n i c s , u n i v e r s i t y o f g r e n o b l e / l i g l a b o r a t o r y Technological Context Different Dataflow Models Decidable Dataflow • Correctness analysis but: • Deadlock-free static scheduling • Strong constraints imposed to dev. • Reduced expressiveness • Powerful optimization • no dynamic problem Dynamic Dataflow • Increased modeling flexibility but: • Conditional token emission/rcption • Limited static analysis • Variable input/output rates • Debugging is not straightforward � Slide 5 — kevin.pouget@st.com — Dynamic Dataflow Applications Debugging — HIPS’13, Boston, USA — May 20 th 2013

  14. s t m i c r o e l e c t r o n i c s , u n i v e r s i t y o f g r e n o b l e / l i g l a b o r a t o r y Technological Context Different Dataflow Models Decidable Dataflow Dynamic Dataflow • Increased modeling flexibility but: • Conditional token emission/rcption • Limited static analysis • Variable input/output rates • Debugging is not straightforward � WORK() { /* dyn_filter.c */ flg = ctlr.next() cnt = ctlr.next() if (flg) ctlr out_1 out_1.send(treat(cnt)) else dyn_filter for (i in 0:cnt) nxt = in.next() in out_2 out_2.send(treat(nxt)) } Slide 5 — kevin.pouget@st.com — Dynamic Dataflow Applications Debugging — HIPS’13, Boston, USA — May 20 th 2013 e

  15. s t m i c r o e l e c t r o n i c s , u n i v e r s i t y o f g r e n o b l e / l i g l a b o r a t o r y Agenda 1 Debugging Challenges of Dataflow Applications 2 Dataflow-Aware Interactive Debugging 3 Proof of Concept Implementation 4 Case Study: a H.264 Video Decoder 5 Conclusion Slide 6 — kevin.pouget@st.com — Dynamic Dataflow Applications Debugging — HIPS’13, Boston, USA — May 20 th 2013

  16. s t m i c r o e l e c t r o n i c s , u n i v e r s i t y o f g r e n o b l e / l i g l a b o r a t o r y Agenda 1 Debugging Challenges of Dataflow Applications 2 Dataflow-Aware Interactive Debugging 3 Proof of Concept Implementation 4 Case Study: a H.264 Video Decoder 5 Conclusion Slide 6 — kevin.pouget@st.com — Dynamic Dataflow Applications Debugging — HIPS’13, Boston, USA — May 20 th 2013

Recommend


More recommend