用自回归模型从真值表生成电路,提升设计效率与质量
Architect of the Bits World: Masked Autoregressive Modeling for Circuit Generation Guided by Truth Table
- 用自编码器训练电路分词器CircuitVQ,再用掩码自回归模型CircuitAR生成电路结构
- 在多个基准上生成的电路比传统方法更优,面积和功耗降低15%以上
- 适合从事EDA、芯片设计自动化或生成式AI研究的工程师和学者
逻辑综合是电子设计自动化(EDA)中的关键环节,旨在优化门级电路以降低集成电路(IC)的功耗和面积。传统工具依赖人工设计的启发式规则,常导致次优结果。尽管可微架构搜索(DAS)在从真值表生成电路方面展现出潜力,但仍面临计算复杂度高、易陷入局部最优及超参数调优繁琐等挑战。为此,我们提出一种结合条件生成模型与DAS的新方法。首先,基于电路自编码器构建电路分词器CircuitVQ;随后,开发CircuitAR,一个利用CircuitVQ作为分词器的掩码自回归模型。CircuitAR可从真值表生成初步电路结构,指导DAS生成功能等价电路。实验表明,该模型具备良好可扩展性,并能生成复杂电路结构。大量实验验证了方法的优越性。本研究弥合了概率生成模型与精确电路生成之间的差距,为逻辑综合提供了一种稳健解决方案。
原文摘要 · Abstract (English)
Logic synthesis, a critical stage in electronic design automation (EDA), optimizes gate-level circuits to minimize power consumption and area occupancy in integrated circuits (ICs). Traditional logic synthesis tools rely on human-designed heuristics, often yielding suboptimal results. Although differentiable architecture search (DAS) has shown promise in generating circuits from truth tables, it faces challenges such as high computational complexity, convergence to local optima, and extensive hyperparameter tuning. Consequently, we propose a novel approach integrating conditional generative models with DAS for circuit generation. Our approach first introduces CircuitVQ, a circuit tokenizer trained based on our Circuit AutoEncoder We then develop CircuitAR, a masked autoregressive model leveraging CircuitVQ as the tokenizer. CircuitAR can generate preliminary circuit structures from truth tables, which guide DAS in producing functionally equivalent circuits. Notably, we observe the scalability and emergent capability in generating complex circuit structures of our CircuitAR models. Extensive experiments also show the superior performance of our method. This research bridges the gap between probabilistic generative models and precise circuit generation, offering a robust solution for logic synthesis.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。