Vivado Block Design的几个使用技巧(live)
1. 如何将Sub Block Design模块从一个Vivado工程Copy到另一个工程?
1) 通过BD Rebuild TCL脚本来实现。
将Hierarchical Block Design block导出为tcl脚本,然后在新工程中run tcl脚本重建BD。
- Run “write_bd_tcl -hier_blks [get_bd_cells hier_0] hier_0.tcl” (hier_0 is the name of hierarchical block)
- Open a BD in the new project and source hier_0.tcl
- run “create_hier_cell_hier_0 ./ new_hier” (command to recreate the hierarchical block can be found at the end of the tcl file)
2) 把Sub BD打包成IP
通过Vivado, Tools菜单下的"Create and Package New IP"工具将希望Copy-Paste的Sub BD模块打包正IP,然后在别的Vivado工程中使用。