The lab 4 gives us basic knowledge how to use Tool Command Language commands in Vivado e.g. to create scripts which could execute several steps.
Main points of this lab:
- TCL commands for open/close block designs,
- simple TCL commands to manipulate IP integrator block designs,
- exporting a block design to TCL file.
We need to launch Vivado and and from Window menu choose option: Tcl Console. In this console we could check current working directory with command pwd. After that we could open interested project with command open_project zynq.xpr. Below is example of these commands:
Then we could go to following folder zynq.srcs/sources_1/bd/Z_system/ and open a block design with following command: open_bd_design Z_system.bd. Below there is example of this command:
We could get basics information about current block design. Example with command get_bd_intf_ports we could get information about list of interfaces ports.
Additionally we could create ports from TCL console. With command: create_bd_port -dir O -type rst Reset we could create an output port for reset.
With this lab we could learn how to use commands write_bd_tcl and write_project_tcl to store block design and project settings in TCL file on disk. We could restore the project and block design with command: source and given TCL script e.g. project_setup.tcl create by these commands.