TL;DR
DeepSeq is the first representation learning framework designed specifically for sequential circuits. By introducing a customized Graph Neural Network (GNN) architecture that handles the cycles created by memory elements (Flip-Flops), it learns to predict logic and transition probabilities with high accuracy, significantly outperforming existing methods in downstream tasks like power estimation and reliability analysis.
What Problem Does This Paper Address?
In Electronic Design Automation (EDA), representation learning—pre-training a model on circuit netlists to solve various downstream tasks—has shown great promise. However, until now, these techniques have been largely restricted to combinational circuits.
Sequential circuits, which form the backbone of modern digital systems, introduce two major hurdles for standard deep learning models:
- Cycles: Memory elements like Flip-Flops (FFs) create feedback loops, turning the circuit into a directed cyclic graph. Standard Directed Acyclic Graph (DAG) GNNs cannot handle these directly.
- Temporal Correlation: The behavior of a sequential circuit isn't just a function of its current inputs, but also its internal state (previous outputs). Capturing this "stateful" behavior is essential for accurate analysis.
Methods
The authors propose DeepSeq, a framework that treats sequential netlists as graphs and processes them using a novel DAG-GNN variant.
1. Customized Propagation Scheme
To handle the cycles caused by FFs, DeepSeq uses a four-step propagation process that mimics a clock cycle:
- Step 1: It "breaks" the cycles by treating FFs as pseudo-primary inputs (PPIs).
- Step 2 & 3: It performs forward and backward information propagation through the combinational logic.
- Step 4: It updates the FF states based on the updated representations of their predecessors.
2. Multi-Task Learning Objective
DeepSeq is trained to predict two critical properties for every node:
- Logic Probability ($T^{LG}$): The probability that a node is at logic '1'.
- Transition Probability ($T^{TR}$): The probability of a node switching states (0→1 or 1→0).
These two tasks are strongly related; transition probability depends on the logic state across consecutive clock cycles. Learning them jointly provides a powerful inductive bias.
3. Dual Attention Aggregator
The authors developed a Dual Attention mechanism. One attention head mimics logic computation (how inputs combine to form an output), while the other mimics transition probability calculation (how the current state relates to the previous state).
Datasets
- Pre-training: The model was trained on 10,534 sequential sub-circuits (150–300 nodes each) extracted from standard benchmarks like ISCAS’89, ITC’99, and Opencores.
- Downstream Evaluation: The model was tested on 6 large-scale circuits from Opencores (e.g., a Network-on-Chip router, an Audio Codec controller) ranging from 2,000 to over 18,000 nodes. This demonstrates the model's ability to generalize from small training samples to massive, real-world designs.
Key Insights and Ideas
- Breaking Cycles via PPIs: By treating FFs as pseudo-inputs, the authors successfully adapted DAG-GNNs—which are naturally suited for logic flow—to cyclic sequential graphs without losing the temporal context.
- Structural + Functional Embedding: By supervising the model with logic and transition probabilities, the resulting node embeddings encode both the topology of the circuit and its logical behavior under specific workloads.
- Zero-Simulation Inference: Unlike traditional power estimation tools that require computationally expensive RTL simulations for every new workload, a fine-tuned DeepSeq can infer switching activity across a whole netlist almost instantly.
Key Results
- Accuracy: DeepSeq achieved a 20% improvement in transition probability prediction and a 15.79% improvement in logic probability prediction over the best-performing baseline GNN (DAG-RecGNN).
- Power Estimation: On large-scale circuits, DeepSeq estimated dynamic power with an average error of only 3.19%. In comparison, the state-of-the-art GNN baseline (Grannite) had an 8.48% error, and traditional non-simulative probabilistic methods had a 16.35% error.
- Reliability Analysis: DeepSeq generalized remarkably well to reliability tasks, achieving a 0.31% error in predicting flipping probabilities, an 88% improvement over analytical baselines.
Limitations and Future Work
The primary limitation acknowledged by the authors is execution speed. Currently, DeepSeq is 3× to 4× slower than some commercial simulation tools. This is because the GNN performs message passing in a levelized, sequential manner to respect the logic flow.
Future work aims to:
- Incorporate parallelizable computation encoders (like PACE) to speed up the GNN.
- Extend the framework to embed netlists at the sub-circuit level to handle even larger designs more efficiently.
Summary updated