NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Joint Algorithm Developing and System-Level Design: Case Study on Video Encoding

Jiaxing Zhang, Gunar SchirnerIFIP 2013 · OpenAlex

Introduction

Modern embedded systems, particularly Multi-Processor Systems-on-Chip (MPSoCs), require a seamless transition from high-level functional algorithms to optimized hardware/software implementations. However, a significant "Specification Gap" often exists between these two domains, hindering rapid design exploration and leading to sub-optimal system performance. This paper presents Algo2Spec, an automated tool designed to bridge this gap by converting high-level algorithm models into system-level design specifications.

The Specification Gap

In traditional design flows, algorithm designers operate within Algorithm Design Environments (ADEs) like Simulink. Their primary focus is functional correctness, math, and logic, often ignoring the underlying hardware constraints. Conversely, system engineers work in System-Level Design Environments (SLDEs) to map these functions onto complex architectures involving multiple processors and custom hardware accelerators.

The Specification Gap between high-level algorithm development and system-level design environments.

The transition from an ADE to an SLDE is typically a manual, error-prone process. This disconnect prevents designers from quickly assessing how algorithmic changes impact hardware performance, creating a bottleneck in the development cycle.

The Algo2Spec Methodology

To address this, the authors propose a unified design flow centered on the Algo2Spec tool. This tool automates the generation of System-Level Design Language (SLDL) specifications from Simulink models, enabling a tight feedback loop between algorithm development and system-level analysis.

Detailed workflow of the Algo2Spec tool, showing the transition from Simulink models to System-Level Design Languages (SLDL).

The Algo2Spec process consists of four primary stages:

  1. Leaf Synthesis: Utilizing tools like Simulink Embedded Coder, the system generates optimized C code for the "atomic" blocks (leaf nodes) of the model.
  2. Hierarchy Synthesis: The structural layout and nesting of the Simulink model are mapped into a hierarchy of "behaviors" within an SLDL like SpecC.
  3. Signal Synthesis: Data connections between blocks are recreated as variables, ports, and buffers within the system specification.
  4. Integrator: The generated C code is stitched into the SLDL skeleton, resulting in a complete, simulation-ready system model.

This automation allows designers to explore different levels of granularity. By choosing which hierarchy levels to expose as separate hardware behaviors, designers can balance communication overhead against the benefits of hardware acceleration.

Case Study: MJPEG Video Encoder

The methodology was validated using a Motion JPEG (M-JPEG) video encoder. The input dataset consisted of a 910-frame QVGA (320x240) video stream. The underlying Simulink model was complex, featuring 294 blocks and a hierarchy depth of eight levels.

Through rapid prototyping enabled by Algo2Spec, the researchers performed multiple design iterations. They utilized Virtual Platform analysis to identify bottlenecks and refined the algorithm's structure to better suit the target hardware (an ARM7TDMI processor at 100MHz with custom accelerators).

Results and Performance Gains

The study compared several implementation strategies for the MJPEG encoder:

  • Pure Software (Expl1): A baseline implementation running entirely on the ARM processor, requiring approximately 80 seconds to encode the stream.
  • Coarse-Grained HW/SW (Expl2): By identifying the most computationally intensive block and moving it to a custom hardware unit, the execution time was reduced to 60 seconds.
  • Optimized Parallel HW/SW (Expl5): Further refining the algorithm's granularity allowed for the simultaneous use of two hardware accelerators. This final iteration achieved an execution time of ~40 seconds.

This represents a 50% performance improvement over the software-only baseline. Crucially, these iterations—from algorithm modification to full hardware simulation—were completed in just a few hours due to the automated translation process.

Conclusion and Future Work

Algo2Spec successfully demonstrates that bridging the specification gap through automation enables cross-layer optimization that is otherwise too time-consuming to explore manually. While currently limited to discrete-time models and requiring manual granularity selection, future work aims to automate these decisions and explore more advanced pipelined scheduling to further enhance throughput in complex embedded systems.

Summary updated

BibTeX
@inproceedings{zhang2013joint,
  author = {Jiaxing Zhang and Gunar Schirner},
  title = {{Joint Algorithm Developing and System-Level Design: Case Study on Video Encoding}},
  booktitle = {IFIP},
  year = {2013},
  doi = {10.1007/978-3-642-38853-8\_3},
}
Figure