每天一个vivado小技巧[1] - 使用tcl命令查看schematic

1. 获取指定submoudle的pin

tcl命令如下:

  1. get cells of pattern matches gth_quad1.
get_cells -hier *gth_quad1*

where, option -hier or -hierarchical is required for submodule in the top design.

  1. get the pin of the cell.
get_pins -of_objects [get_cells -hier *gth_quad1*]
  1. list on seperate lines

image

在vivado中,此条命令返回值会用空格分隔开,而非换行符,使用puts命令分割:

foreach pins [get_pins -of_objects [get_cells -hier *gth_quad1*]] {
puts $pins
}

image

2. 快速查看指定objects的schematic

tcl command

show_schematic [get_cells -hier *gth_quad1*]
show_schematic [get_pins *]

There must be an opened design

posted @ 2023-05-18 10:28  devindd  阅读(242)  评论(0编辑  收藏  举报