4.启动Vivado并在Tcl控制台中运行validate_board_files。
5.validate_board_files是一个新的Tcl命令,用于调用linter。目前需要一个该参数是包含板XML文件(board.XML,preset.xml,part0_pins.xml)。
Description:
Check whether the XML files describing a board in the given directory
are valid.
Only supported for board XML files with schema_version>=2.0.
The XML files must contain an appropriate DOCTYPE declaration to be
fully validated. Examples:
<!DOCTYPE board SYSTEM "board.dtd"> <!-- for board.xml -->
<!DOCTYPE ip_presets SYSTEM "preset.dtd"> <!-- for preset.xml -->
<!DOCTYPE part_info SYSTEM "part0_pins.dtd"> <!-- for part0_pins.xml -->
Note that if a project is open and an IP repository loaded, this command
will also validate
certain IP and Interface attributes used in the board definition against
the current IP repository.
Syntax:
validate_board_files [-doctype_inject <arg>] [-quiet] [-verbose] [<dir>]
Returns:
ok if all board files are valid
Usage:
Name Description
------------------------------
[-doctype_inject] The name of a directory containing the dtd files
(board.dtd, part0_pins.dtd, preset.dtd) for DOCTYPE
injection in board files. If the path is invalid (or
does not contain the dtd files), then the injection
will
not happen. Use "" to inject the default dtd files
from
the vivado install data path.
[-quiet] Ignore command errors
[-verbose] Suspend message limits during command execution
[<dir>] The name of a directory containing the board files