Introduction
Designing specialized hardware accelerators for Deep Neural Networks (DNNs) is a complex, cross-disciplinary challenge. The design space is vast, involving various hardware architectures, memory hierarchies, and dataflows—the strategies used to schedule algorithms onto hardware. Traditionally, evaluating these designs requires time-consuming cycle-accurate simulations or physical synthesis (ASIC/FPGA), which can take months. This paper presents the DNN-Chip Predictor, a fast analytical tool that estimates energy, throughput, and latency with high accuracy during the early design phase.
Methodology: Analytical Modeling via Nested Loops
The core innovation of the DNN-Chip Predictor is its move away from slow cycle-by-cycle simulations toward a direct mathematical formulation. The framework abstracts hardware architectures and dataflows into a generic "nested for-loop" representation. This allows the tool to model memory hierarchies (DRAM, Global Buffers, Network-on-Chip, and Register Files) and temporal/spatial scheduling universally.
To calculate energy, the model identifies "refresh locations" within these nested loops for weights, inputs, and outputs. The loop hierarchy above the refresh location determines the number of refreshes, while the hierarchy below determines the data volume per refresh. Latency is modeled by identifying the bottleneck among computation, DRAM access, and buffer access, assuming a pipelined execution flow.
Experimental Validation
The authors validated the predictor against three primary baselines: the fabricated Eyeriss ASIC chip, an open-source FPGA implementation of SkyNet, and an in-house 65nm ASIC synthesis.
When compared against actual silicon measurements from the Eyeriss accelerator, the predictor demonstrated remarkable accuracy. Energy breakdown predictions differed by a maximum of only 5.15%, while throughput was within 11% of measured values. As shown in the processing latency analysis, the analytical model tracks chip-measured performance closely across different convolutional layers.
Validation against FPGA implementations of SkyNet also showed strong results, with latency estimates generally within 16.84% of actual hardware measurements. For ASIC synthesis of AlexNet layers, energy breakdown errors remained below 5.28%.
Key Insights and Limitations
- Loop Abstraction: By treating dataflows as nested loops, the predictor can model almost any accelerator design without custom plugins.
- Analytical Speed: The model provides near-instant feedback, enabling rapid design space exploration that would be impossible with traditional simulation tools.
- Current Constraints: The model currently assumes a convolution stride of 1; layers with larger strides (like AlexNet's CONV1) can see error spikes in memory access predictions (up to 17.66%). Additionally, the model assumes perfect pipelining, which may slightly underestimate latency by ignoring minor hardware stalls or specific FPGA optimizations like buffer partitioning.
Conclusion
The DNN-Chip Predictor offers a robust, fast, and generic alternative to simulation-heavy hardware design workflows. By achieving prediction errors generally under 18% compared to fabricated silicon, it provides engineers with a reliable tool for evaluating the energy-efficiency and performance of next-generation DNN accelerators at the earliest stages of development.
Summary updated