# Verilog to Routing

**Verilog to Routing**（VTR）是一套面向现场可编程门阵列（FPGA）研究的开源计算机辅助设计（CAD）流程。它以数字电路的 Verilog 描述和目标 FPGA 架构描述为输入，生成经过布局、布线和时序分析的实现，并给出 FPGA 的速度与面积结果。<sup>[1](https://verilogtorouting.org/)</sup> 这是一项由[多伦多大学](https://www.edgepedia.org/zh/university-of-toronto)（University of Toronto）牵头、全球协作的努力，提供评估新型 FPGA 架构和 CAD 算法所需的工具、基准套件、架构文件和文档；这类工作闭源厂商工具无法支持，因为它们只把设计映射到一组固定的、厂商专用的器件上。<sup>[2](https://github.com/verilog-to-routing/vtr-verilog-to-routing)</sup><sup> • </sup><sup>[3](https://paperity.org/p/376816061/vtr-9-open-source-cad-for-fabric-and-beyond-fpga-architecture-exploration)</sup>

| 关键事实 | 详情 |
|---|---|
| 目的 | 用于 FPGA 架构和 CAD 研究的开源 CAD 流程，从 Verilog 输入到布线后实现<sup>[1](https://verilogtorouting.org/)</sup> |
| 核心工具 | Parmys（展开、综合、部分映射）、ABC（逻辑优化与技术映射）、VPR（Versatile Place and Route，通用布局布线；打包、布局、布线、时序分析）<sup>[2](https://github.com/verilog-to-routing/vtr-verilog-to-routing)</sup> |
| 许可证 | 大部分代码采用 MIT 许可证；ABC 按其自身的宽松条款分发<sup>[2](https://github.com/verilog-to-routing/vtr-verilog-to-routing)</sup> |
| 首次发布 | 在 ACM/SIGDA FPGA 2012 会议上描述（罗斯（Rose）、刘（Luu）、Yu 等）<sup>[4](https://www.researchgate.net/publication/221224639_The_VTR_project_architecture_and_CAD_for_FPGAs_from_verilog_to_routing)</sup> |
| 最新发布 | VTR 9.0.0，2025 年 1 月 21 日发布，新增 3D FPGA 和 RAD 架构、硬片上网络（NoC）以及复杂线形<sup>[5](https://github.com/verilog-to-routing/vtr-verilog-to-routing/releases)</sup> |
| VTR 8 相对 VTR 7 的提升 | 最小可布线通道宽度降低 15%，线长降低 41%，关键路径延迟降低 12%，运行速度为原来的 5.3 倍，内存占用降至原来的 1/3.3<sup>[6](https://aarongraham9.github.io/vtr8_trets.pdf)</sup> |
| VTR 9 的加速 | 布局速度为 VTR 8 的 4 倍，布线速度为其 2.2 倍；整体物理实现 CPU 时间减少 48%，平均质量更好<sup>[3](https://paperity.org/p/376816061/vtr-9-open-source-cad-for-fabric-and-beyond-fpga-architecture-exploration)</sup> |
| 比特流 | VTR 不直接生成器件比特流；它可以输出 FASM，供 Symbiflow 等比特流生成器使用<sup>[7](https://docs.verilogtorouting.org/en/latest/vtr/cad_flow/)</sup><sup> • </sup><sup>[2](https://github.com/verilog-to-routing/vtr-verilog-to-routing)</sup> |

## CAD 流程

该流程分阶段进行。Verilog 电路首先被展开并综合，然后被优化并映射到查找表，最后在目标架构上被打包、布局、布线和分析。<sup>[1](https://verilogtorouting.org/)</sup> 整个流程没有单一可执行文件；`run_vtr_flow` 等脚本把各个工具串联起来，并以基准电路文件和 FPGA 架构文件作为两个必需参数。<sup>[8](https://vtr-docs.readthedocs.io/en/latest/vtr/running_vtr.html)</sup>

**前端综合。** 在原始流程中，ODIN II 解释 Verilog 描述并将其转换为 BLIF 网表；当架构描述包含乘法器和存储器等结构时，它把这些结构直接综合成硬逻辑块，并且包含一种仿真能力来验证其输出。<sup>[4](https://www.researchgate.net/publication/221224639_The_VTR_project_architecture_and_CAD_for_FPGAs_from_verilog_to_routing)</sup> VTR 9 引入了 **Parmys** 逻辑综合流程，它提高了 Verilog 语言覆盖范围和结果质量，使更多设计能够跑通该流程。<sup>[3](https://paperity.org/p/376816061/vtr-9-open-source-cad-for-fabric-and-beyond-fpga-architecture-exploration)</sup>

**逻辑优化与映射。** ABC 是一种逻辑优化与技术映射工具，它优化 FPGA 的软逻辑并将其映射到查找表。<sup>[4](https://www.researchgate.net/publication/221224639_The_VTR_project_architecture_and_CAD_for_FPGAs_from_verilog_to_routing)</sup>

**物理实现。** VPR 接收经技术映射的电路和架构描述，执行打包、布局、布线与分析，生成实现该电路所需的 FPGA 配置，以及关键路径延迟和面积等统计数据。<sup>[9](https://vtr-verilog-to-routing.readthedocs.io/en/latest/vpr/)</sup> 默认情况下，VPR 使用集成了打包与布局的分析式布局流程；传统的顺序打包、布局、布线流程也可用。<sup>[9](https://vtr-verilog-to-routing.readthedocs.io/en/latest/vpr/)</sup> 各阶段可以单独使用：任意逻辑块的网表可以送入 VPR 打包器的旁路通道，来自其他工具的布局可以从 `.place` 文件开始布线，已有实现可以从 `.route` 文件进行分析，以生成面积、延迟和功耗结果。<sup>[7](https://docs.verilogtorouting.org/en/latest/vtr/cad_flow/)</sup>

## 架构描述

VTR 使用基于 XML 的架构描述语言来描述目标 FPGA，使用户能够建模大量假想的和类商业架构。<sup>[10](https://docs.verilogtorouting.org/en/latest/arch/)</sup> 该描述涵盖布线架构、逻辑块的内部结构、逻辑块的全局模式以及 I/O 结构。<sup>[4](https://www.researchgate.net/publication/221224639_The_VTR_project_architecture_and_CAD_for_FPGAs_from_verilog_to_routing)</sup> 如果 VPR 的架构生成器无法生成布线架构，用户可以直接在 `rr_graph.xml` 文件中提供布线资源图。<sup>[7](https://docs.verilogtorouting.org/en/latest/vtr/cad_flow/)</sup> 交互式可视化器提供器件级和瓦片内视图，用于在不运行完整流程的情况下开发和调试架构文件。<sup>[10](https://docs.verilogtorouting.org/en/latest/arch/)</sup>

## 发布历史

该项目最早由多伦多大学、新不伦瑞克大学（University of New Brunswick）、不列颠哥伦比亚大学（University of British Columbia）、香港城市大学（City University of Hong Kong）和[迈阿密大学](https://www.edgepedia.org/zh/miami-university)（Miami University）的乔纳森·罗斯（Jonathan Rose）、杰森·刘（Jason Luu）及同事在 2012 年的一篇 FPGA 会议论文中描述。<sup>[4](https://www.researchgate.net/publication/221224639_The_VTR_project_architecture_and_CAD_for_FPGAs_from_verilog_to_routing)</sup> 那个版本首次使基于 VPR 的打包、布局和布线完全时序驱动，并新增了四个大型基准电路。<sup>[4](https://www.researchgate.net/publication/221224639_The_VTR_project_architecture_and_CAD_for_FPGAs_from_verilog_to_routing)</sup>

**VTR 8**（2020 年，ACM TRETS）扩展了可建模的 FPGA 架构范围，并大幅提高了优化质量和效率：相对于 VTR 7，最小可布线通道宽度降低 15%，线长降低 41%，关键路径延迟降低 12%，运行速度为原来的 5.3 倍，内存占用降至原来的 1/3.3。<sup>[6](https://aarongraham9.github.io/vtr8_trets.pdf)</sup> 其作者还表明，与高度调优、面向特定架构的工业工具相比，VTR 生成的实现质量合理，并论证架构通用性、实现质量和运行时效率是可以兼容的目标。<sup>[6](https://aarongraham9.github.io/vtr8_trets.pdf)</sup>

**VTR 9**（ACM TRETS，2025 年）将架构建模语言和优化器推广到更多样的可编程布线结构、带有嵌入式硬片上网络的 FPGA，以及采用堆叠硅集成的三维 FPGA 系统。<sup>[3](https://paperity.org/p/376816061/vtr-9-open-source-cad-for-fabric-and-beyond-fpga-architecture-exploration)</sup> 9.0.0 版本发布说明列出对 3D FPGA 和 RAD 架构、带有硬 NoC 的架构、不同的水平与垂直通道宽度和类型，以及对角线布线和其他复杂线形（如 L 形和 T 形线）的支持。<sup>[5](https://github.com/verilog-to-routing/vtr-verilog-to-routing/releases)</sup> 物理实现流程获得了更高效的布局引擎、布图规划约束、单阶段（平坦）布线以及并行布线算法；布局和布线速度分别为 VTR 8 的 4 倍和 2.2 倍，使整体物理实现 CPU 时间减少 48%，平均结果质量更好。<sup>[3](https://paperity.org/p/376816061/vtr-9-open-source-cad-for-fabric-and-beyond-fpga-architecture-exploration)</sup> VTR 9 还新增了 AMD/Xilinx 7 系列和 Altera Stratix 10 器件的架构模型。<sup>[3](https://paperity.org/p/376816061/vtr-9-open-source-cad-for-fabric-and-beyond-fpga-architecture-exploration)</sup> 在一项 Stratix 10 对比中，VTR 使用的线长是 [Quartus](https://www.edgepedia.org/zh/quartus) 的 1.06 倍，运行时间少 32%，而关键路径延迟平均高 28%，部分原因在于 Quartus 手工调优的布线开关模式、未建模的 Stratix 10 互连寄存器，以及 Quartus 中 VTR 没有的重定时算法。<sup>[11](https://www.researchgate.net/publication/391727381_VTR_9_Open-Source_CAD_for_Fabric_and_Beyond_FPGA_Architecture_Exploration)</sup>

## 基准套件

VTR 附带若干基准套件，匹配不同研究规模。<sup>[12](https://docs.verilogtorouting.org/en/latest/vtr/benchmarks/)</sup>

- **VTR 基准**：一组与完整流程完全兼容的中型设计，适用于 FPGA 架构和中规模 CAD 研究；规模从较小（321 个网表原语）到中型（165,809 个原语），覆盖图像处理、软处理器、密码学和算术等领域。<sup>[12](https://docs.verilogtorouting.org/en/latest/vtr/benchmarks/)</sup><sup> • </sup><sup>[13](https://labs.engineering.asu.edu/advent/wp-content/uploads/sites/123/2023/09/Koios_Benchmarks_IEEE_verified.pdf)</sup>
- **Titan 基准**：与英特尔（Intel）Stratix IV 和 Stratix 10 器件兼容的大型现代设计，用 Quartus 综合并用 VPR 布局布线；由于体积较大，它们未包含在发行版中，需单独下载。<sup>[12](https://docs.verilogtorouting.org/en/latest/vtr/benchmarks/)</sup>
- **Titanium 基准**：25 个大型现代基准（Titanium25），作为 Titan 套件的补充，包括深度学习加速器、RISC-V 处理器和 DSP 设计，平均原语数约为 850,000。<sup>[12](https://docs.verilogtorouting.org/en/latest/vtr/benchmarks/)</sup>
- **Koios 基准**：40 个深度学习设计，涵盖卷积神经网络（CNN）、循环神经网络（RNN）、多层感知机（MLP）和强化学习，使用从二进制以及 int8/16/32 到 bfloat16 和 fp16 的精度；该套件旨在与完全开源的 VTR 流程配合使用。<sup>[12](https://docs.verilogtorouting.org/en/latest/vtr/benchmarks/)</sup><sup> • </sup><sup>[13](https://labs.engineering.asu.edu/advent/wp-content/uploads/sites/123/2023/09/Koios_Benchmarks_IEEE_verified.pdf)</sup>

## 使用与影响

VTR 在 FPGA 架构和 CAD 研究中被广泛使用；Koios 的作者称它可以说是使用最广泛的 FPGA 架构和 CAD 研究框架。<sup>[13](https://labs.engineering.asu.edu/advent/wp-content/uploads/sites/123/2023/09/Koios_Benchmarks_IEEE_verified.pdf)</sup> 其 VPR 工具作为基准程序（734.vpr，“用于 FPGA 研究的 CAD 中的通用布局布线”）被收录进 [SPEC CPU](https://www.edgepedia.org/zh/spec-cpu) 基准套件。<sup>[14](https://www.tomshardware.com/pc-components/cpus/new-server-focused-spec-cpu-2026-benchmarking-suite-has-results-for-a-raspberry-pi-5-updated-tools-feature-more-tests-and-can-run-a-wide-range-of-systems)</sup> 仍在进行的研究继续扩展该流程：近期工作增强了 VTR，使其能够建模多裸片 2.5D 和 3D FPGA 布线架构，并报告在合适的裸片间布线下，3D FPGA 相对于 2D 器件可实现高达 14% 的线长减少和 6% 的关键路径延迟改善；所有扩展都已集成到 VTR 主分支中。<sup>[15](https://arxiv.org/abs/2606.06421)</sup>

该项目的代码和基准套件在 MIT 许可证下发布，ABC 按其自身的宽松条款发布；贡献者包括来自高校以及英特尔、华为（Huawei）、莱迪思（Lattice）、Altera、德州仪器（Texas Instruments）、谷歌（Google）和 Antmicro 等公司的研究人员。<sup>[2](https://github.com/verilog-to-routing/vtr-verilog-to-routing)</sup>

## References

1. [Verilog to Routing project website](https://verilogtorouting.org/)
2. [verilog-to-routing/vtr-verilog-to-routing, GitHub repository README](https://github.com/verilog-to-routing/vtr-verilog-to-routing)
3. [Elgammal et al. (2025). VTR 9: Open-Source CAD for Fabric and Beyond FPGA Architecture Exploration. ACM TRETS 18(3).](https://paperity.org/p/376816061/vtr-9-open-source-cad-for-fabric-and-beyond-fpga-architecture-exploration)
4. [Rose, Luu, Yu, et al. (2012). The VTR Project: Architecture and CAD for FPGAs from Verilog to Routing. FPGA '12.](https://www.researchgate.net/publication/221224639_The_VTR_project_architecture_and_CAD_for_FPGAs_from_verilog_to_routing)
5. [Releases, verilog-to-routing/vtr-verilog-to-routing, GitHub](https://github.com/verilog-to-routing/vtr-verilog-to-routing/releases)
6. [Murray et al. (2020). VTR 8: High Performance CAD and Customizable FPGA Architecture Modelling. ACM TRETS 13(2).](https://aarongraham9.github.io/vtr8_trets.pdf)
7. [VTR CAD Flow, Verilog-to-Routing documentation](https://docs.verilogtorouting.org/en/latest/vtr/cad_flow/)
8. [Running the VTR Flow, Verilog-to-Routing documentation](https://vtr-docs.readthedocs.io/en/latest/vtr/running_vtr.html)
9. [VPR, Verilog-to-Routing documentation](https://vtr-verilog-to-routing.readthedocs.io/en/latest/vpr/)
10. [FPGA Architecture Description, Verilog-to-Routing documentation](https://docs.verilogtorouting.org/en/latest/arch/)
11. [VTR 9: Open-Source CAD for Fabric and Beyond FPGA Architecture Exploration (full text), ResearchGate](https://www.researchgate.net/publication/391727381_VTR_9_Open-Source_CAD_for_Fabric_and_Beyond_FPGA_Architecture_Exploration)
12. [Benchmarks, Verilog-to-Routing documentation](https://docs.verilogtorouting.org/en/latest/vtr/benchmarks/)
13. [Arora et al. Koios Benchmarks: Best Benchmarks for Deep Learning Accelerator Architecture Studies. IEEE.](https://labs.engineering.asu.edu/advent/wp-content/uploads/sites/123/2023/09/Koios_Benchmarks_IEEE_verified.pdf)
14. [SPEC CPU 2026 benchmark suite overview, Tom's Hardware](https://www.tomshardware.com/pc-components/cpus/new-server-focused-spec-cpu-2026-benchmarking-suite-has-results-for-a-raspberry-pi-5-updated-tools-feature-more-tests-and-can-run-a-wide-range-of-systems)
15. [Poolad et al. Modeling, Optimizing and Exploring Multi-Die FPGA Routing Architectures. arXiv:2606.06421.](https://arxiv.org/abs/2606.06421)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 工程与制造 › 计算机辅助工程与电子设计自动化

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/verilog-to-routing

English original: https://www.edgepedia.org/verilog-to-routing
