Implementation-aware selection of the custom instruction set for extensible processors

Amir Yazdanbakhsh, Mehdi Kamal, Sied Mehdi Fakhraie, Ali Afzali-Kusha, Saeed Safari, Massoud PedramMicroprocess. Microsystems 2014

TL;DR

This paper introduces a novel framework for selecting custom instructions (CIs) for extensible processors that accounts for the actual logic synthesis implementation details (area and delay trade-offs) of primitive operations. By considering the Pareto-optimal curves of these primitives, the approach achieves significantly better performance improvements and area efficiency compared to traditional methods that use fixed area-delay values.

What Problem Does This Paper Address?

Extensible processors offer a flexible way to boost performance by adding custom instructions (CIs) tailored to specific applications. However, existing CI selection methods often overlook a crucial aspect: the physical implementation of these CIs. When selecting CIs, previous approaches typically rely on pre-defined, fixed area and delay values for the underlying primitive operations (like adders, multipliers). This simplification ignores the fact that a single primitive operation can have multiple implementations, each with a different trade-off between area and delay. This disconnect between the high-level CI selection and the low-level synthesis reality can lead to suboptimal choices, failing to maximize performance gains within a given area budget. This paper aims to bridge this gap by incorporating the nuanced area-delay characteristics of primitive operations directly into the CI selection process.

Methods

The core of the proposed approach lies in integrating logic-level synthesis information into the architecture-level CI selection flow. The framework begins by compiling application code (C/C++) to extract the Data Flow Graph (DFG). Primitive operations within the DFG are then synthesized to generate area-delay Pareto-optimal curves. This information is stored in a logic-level synthesis library.

The architecture-level CI selection then proceeds in two main stages:

  1. Match Enumeration: Identifying potential CI candidates from the DFG.
  2. Template Generation: Classifying these candidates.

Crucially, before selecting the final CI set, the paper introduces a heuristic algorithm called WALK (Weighted Area-Latency Knapsack). This algorithm iterates through candidate CIs and, for each primitive operation within a CI, explores its area-delay Pareto-optimal curve. The goal is to find the minimum area for the CI while ensuring its critical path delay does not exceed a predefined constraint. This exploration allows for a more informed selection of CI implementations that best fit the overall design objectives. The performance improvement (PI) is then calculated based on these optimized CI implementations.

Datasets

The paper evaluates its approach using seven domain-specific embedded applications:

  • IPSec and MD5 (from PacketBench)
  • LMS and ADPCM (from SNU-RT benchmark suits)
  • G721 Encode/Decode and BitCounter (from MiBench)

These applications were compiled using GCC to generate the GIMPLE intermediate representation, from which DFGs were extracted.

Key Insights and Ideas

  • The "Fixed Value" Fallacy: The most significant insight is that treating primitive operations as having fixed area and delay values is a major oversimplification that hinders optimal CI selection. The real-world synthesis process offers a spectrum of choices.
  • Pareto Curves as Design Guides: By leveraging the area-delay Pareto-optimal curves of primitive operations, designers can make more informed decisions about which implementation of a CI will yield the best speedup per area (SPA) within a given budget.
  • WALK Algorithm's Role: The WALK algorithm is key to navigating this area-delay space. It intelligently searches for the most area-efficient implementation of a CI without violating delay constraints, effectively performing a form of knapsack-like optimization at the primitive level.
  • Early Optimization Pays Off: Performing this implementation-aware exploration before the final CI selection phase allows for better overall optimization, leading to higher SPA and often achieving saturation points at lower area budgets.

Key Results

The proposed implementation-aware CI selection approach consistently outperforms conventional methods across all tested benchmarks and area constraints.

  • Performance Improvement: The paper reports up to 10% improvement in achievable performance compared to conventional methods under the same area-budget constraint.
  • Area Efficiency: In most cases, the proposed method achieves maximum performance improvements using lower areas. For example, the average area usage is generally lower, and the proposed approach often reaches its saturation point (where further area increase yields no performance gain) at smaller area budgets.
  • SPA Gains: Normalized SPA values are consistently positive, indicating that the proposed method offers a better speedup-to-area ratio.
  • Multi-cycle Operations: When applied to multi-cycle custom instructions, the approach showed up to 80% speedup per area improvement compared to traditional serialization algorithms.

Limitations and Future Work

  • Heuristic Nature: The WALK algorithm is a heuristic, meaning it aims for a near-optimal solution rather than a guaranteed global optimum. While effective, there's always a theoretical possibility of missing the absolute best combination.
  • Synthesis Tool Dependency: The generation of area-delay Pareto curves is dependent on the specific synthesis tool and standard cell library used. Results might vary with different toolchains.
  • Future Work: The authors suggest exploring other merit functions beyond SPA and investigating the impact of different micro-architectural constraints. They also hint at applying this methodology to other optimization problems in hardware design.

Summary updated

BibTeX
@article{yazdanbakhsh2014implementation,
  author = {Amir Yazdanbakhsh and Mehdi Kamal and Sied Mehdi Fakhraie and Ali Afzali-Kusha and Saeed Safari and Massoud Pedram},
  title = {{Implementation-aware selection of the custom instruction set for extensible processors}},
  journal = {Microprocess. Microsystems},
  year = {2014},
  doi = {10.1016/j.micpro.2014.05.007},
}

Loading related content...

Figure