TPCS:一种具有原生执行语义的周期级仿真范式,用于RTL建模与生成
TPCS: A Cycle-Level Simulation Paradigm with Native Execution Semantics for RTL Modeling and Generation
AI总结:
TPCS是兼具原生执行语义的周期级仿真范式,作为统一中间抽象层覆盖微架构建模等环节,速度较Verilator大幅提升,生成的RTL性能与手工实现相当,可实现高效微架构探索。
摘要:
特定领域架构与微架构设计的日益多样化,要求在设计早期阶段具备快速且准确的评估方法。然而,现有方法存在根本权衡:高级模拟器速度快但保真度不足,而基于RTL的工具虽精度高却伴随显著的仿真开销,这一差距限制了RTL前微架构的高效探索。为此,我们提出事务剪枝周期仿真(Transaction-Pruned Cycle Simulation,TPCS),这是一种新型建模与仿真框架,作为统一的中间抽象层,覆盖微架构建模、周期精确仿真与可综合RTL实现。TPCS将组合逻辑组织为基于事务的函数调用,并利用主机CPU控制流自然剪枝非活跃逻辑,无需显式事件调度或信号跟踪,即可实现周期精确仿真并大幅提升性能。TPCS保留与RTL的结构对应关系,支持自动生成可综合设计;在SMP系统上,其速度较并行Verilator提升36倍至42倍,在加速器上较单线程Verilator提升3.4倍至7.2倍,且在评估的轨迹上实现周期级波形一致。生成的RTL与时序和面积与手工实现相当,时钟周期相对变化为-4.7%至+2.6%,标准单元面积相对变化为-3.3%至+4.0%。通过弥合高级建模与RTL设计间的抽象差距,TPCS实现了统一且敏捷的RTL前工作流,支持兼具高性能与实现保真度的高效微架构探索。
英文摘要:
The growing diversity of domain-specific architectures and microarchitectural designs demands fast and accurate evaluation methods during early design stages. However, existing approaches suffer from a fundamental trade-off: high-level simulators offer speed but lack fidelity, while RTL-based tools provide accuracy at the cost of significant simulation overhead. This gap limits efficient pre-RTL microarchitecture exploration. Therefore, we propose Transaction-Pruned Cycle Simulation (TPCS), a novel modeling and simulation framework. It serves as a unified intermediate abstraction spanning microarchitecture modeling, cycle-accurate simulation, and synthesizable RTL implementation. TPCS organizes combinational logic as transaction-based function invocations and leverages host CPU control flow to naturally prune inactive logic, eliminating the need for explicit event scheduling or signal tracking. This enables cycle-accurate simulation with significantly improved performance. TPCS preserves structural correspondence with RTL and supports automatic generation of synthesizable designs. TPCS achieves 36$\times$-42$\times$ speedups over parallel Verilator on SMP systems and 3.4$\times$-7.2$\times$ over single-threaded Verilator on accelerators, with cycle-level waveform agreement on the evaluated traces. The generated RTL demonstrates comparable timing and area to handcrafted implementations, with relative changes of -4.7\% to +2.6\% in clock period and -3.3\% to +4.0\% in standard-cell area. By bridging the abstraction gap between high-level modeling and RTL design, TPCS enables a unified and agile pre-RTL workflow, allowing efficient microarchitecture exploration with both high performance and implementation fidelity.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。