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

Efficient Simulation of Synthesis-Oriented System Level Designs

Rajesh K. Gupta, Sandeep K. Shukla, Nick SavoiuISSS 2002

TL;DR

This paper tackles the challenge of efficiently simulating hardware designs written in C++ for synthesis. They introduce an algorithm that automatically transforms these synthesis-oriented models into a more simulation-friendly structure, achieving significant speedups (62-76%) on multiprocessor simulators without requiring designers to adopt a specialized modeling style.

What Problem Does This Paper Address?

Designing complex hardware systems, especially System-on-Chips (SoCs), requires models that can be used for both simulation (for design exploration and verification) and synthesis (to generate actual hardware). However, C++-based modeling frameworks like SystemC often lead to a conflict: models optimized for synthesis (focusing on hardware structure) are not necessarily efficient for simulation, particularly when leveraging multiprocessor simulators. This is because synthesis-oriented models often use cooperative multithreading, which is less efficient for parallel execution than preemptive multithreading needed for multiprocessor simulation. Simply switching to preemptive multithreading can degrade performance due to high overheads if the model's threading structure isn't optimized. The core problem is how to achieve efficient multiprocessor simulation for synthesis-oriented C++ models without forcing designers to rewrite their code in a simulation-specific manner.

Methods

The paper proposes an algorithm that automatically transforms synthesis-oriented C++ system-level designs into a structure optimized for multiprocessor simulation. The key steps include:

  • SystemC Analysis: Understanding the structure of the SystemC description, identifying processes, signals, and their interactions. This involves creating a class hierarchy and Hierarchical Task Graphs (HTGs).
  • Process Analysis: Decomposing processes into smaller, indivisible units called Atomic Process Units (APUs). APUs are defined as the smallest part of a process that the simulation kernel is aware of and are typically activated by a single control signal. This decomposition helps refine inter-process dependencies.
  • APU Generator: Creating APU graphs that represent the execution flow within processes, considering synchronization points and control signals. This step aims to reduce the complexity of handshakes between processes.
  • Scheduler: Ordering the execution of APUs. This involves identifying loop bodies in synchronous processes and then applying scheduling algorithms (like ASAP) to the APU graphs. The scheduled graph is then sequentialized to create a thread of execution.
  • Code Generator: Producing semantically equivalent C++ code that uses the newly created threads. This step also involves removing unnecessary constructs like infinite loops that are no longer needed due to the explicit thread management.

A crucial aspect is ensuring the transformed model is semantically equivalent to the original. The authors propose using Communicating Sequential Processes (CSP) to formally prove this equivalence, generating CSP expressions for both the original and transformed models and using trace equivalence algorithms.

Datasets

The paper evaluates their algorithm on:

  • A Direct Memory Access (DMA) controller model.
  • Several example designs included with the SystemC 2.0 distribution.

No new benchmarks were introduced; rather, existing SystemC examples were used.

Key Insights and Ideas

  • Synthesis vs. Simulation Conflict: The fundamental trade-off between modeling for synthesis (structure-focused) and simulation (performance-focused) in C++ hardware description is a significant challenge.
  • APU Decomposition: Breaking down processes into Atomic Process Units (APUs) based on control signals and synchronization points is key to restructuring for efficient parallel execution.
  • Control Signal Importance: Control signals play a critical role in defining execution paths and dependencies, and their analysis is central to the APU generation and scheduling process.
  • Automatic Transformation: The ability to automatically transform synthesis-oriented models into a simulation-optimized form is highly valuable, saving designers significant manual effort.
  • Formal Equivalence Proof: The approach of using CSP and trace equivalence to formally prove that the transformed model behaves identically to the original is crucial for design confidence.

Key Results

The algorithm was applied to the DMA example and other SystemC designs. Simulation results on a dual-processor machine showed significant performance improvements:

  • DMA: 62.76% simulation time reduction.
  • FIR: 70.57% simulation time reduction.

These results demonstrate that the transformation effectively exploits multiprocessor capabilities.

Limitations and Future Work

  • Manual APU Selection for Thread Mapping: While the algorithm generates APUs and schedules them, the actual mapping of APU sequences to threads is still done manually.
  • Characterization of Models for Equivalence: The authors acknowledge that while their tested examples produced trace-equivalent code, they haven't yet fully characterized the classes of SystemC models for which the transformation always guarantees trace equivalence.
  • Future Work: The authors plan to focus on developing a necessary and sufficient characterization of SystemC models that ensures trace equivalence after transformation. They also aim to automate the thread mapping process and further refine the proof-carrying compiler approach.

Summary updated

BibTeX
@inproceedings{gupta2002efficient,
  author = {Rajesh K. Gupta and Sandeep K. Shukla and Nick Savoiu},
  title = {{Efficient Simulation of Synthesis-Oriented System Level Designs}},
  booktitle = {ISSS},
  year = {2002},
  doi = {10.1145/581199.581237},
}

Loading related content...

Figure