vivado Board File Linter

发布时间:2024年01月22日

Board File Linter

板文件过梁是AMD Vivado的一个功能? 使董事会文件作者能够验证用于定义基于AMD设备的板的XML文件的正确性。Linter主要进行以下两项检查:

?XML语法检查:检查XML标记的顺序。

?业务逻辑检查:XML DTD文件无法完成的所有其他检查。检查IPvs板接口定义一致性和VLNV。

注意:默认情况下,这些检查仅对指定schema_version>=2.2.使用board File Linter的board.xml文件启用执行以下步骤以使用板锉过梁:

1.板开发人员需要在XML文件中添加文档类型声明(DOCTYPE)检查有效性时。这可以手动完成,也可以使用-doctype_injectvalidate_board_file命令的开关。有关更多详细信息,请参阅长期帮助下面步骤5中的命令片段。以下是DOCTYPE声明的示例:

<!DOCTYPE board SYSTEM "/proj/xbuilds/<2020.2>_daily_latest/installs/
lin64/Vivado/2020.2/data/boards/board_schemas/current/board.dtd">

2.在实际发布XML文件之前,必须删除DOCTYPE声明。这是因为DOCTYPE引用的路径(Vivado安装)对用户无效。

3.如果板开发人员未能包含DOCTYPE,Vivado将触发警告:

Warning: [Board 49-117] Board file '/home/mccrohan/tmp/board.xml' did
not contain a DOCTYPE declaration or the DOCTYPE declaration did not
reference a valid DTD so XML validation is ignored for this file.

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
(board.xml, part0_pins.xml, preset.xml) to be
checked
Categories:
Object, Project, XPS, Board
文章来源:https://blog.csdn.net/cckkppll/article/details/135759403
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。