这是我尝试使用此 python 包将 xml 转换为降价文件 (https://pypi.org/project/ipxact2systemverilog/)
<?xml version="1.0" encoding="UTF-8"?>
<!--Generated by PeakRDL IP-XACT (https://github.com/SystemRDL/PeakRDL-ipxact)-->
<ipxact:component xmlns:ipxact="http://www.accellera.org/XMLSchema/IPXACT/1685-2014" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.accellera.org/XMLSchema/IPXACT/1685-2014 http://www.accellera.org/XMLSchema/IPXACT/1685-2014/index.xsd">
<!--There are unimportant meat filler items in here but I have left them out for simplification-->
</ipxact:component>
当我运行命令时:
python ./vcg-env/bin/ipxact2md --use-schemaloc -s $gitroot/output-files/ip_xact_test.xml -d $gitroot/output-files/registers_markdown.md
这是我得到的错误: `ip_xact_test.xml:3:0:ERROR:SCHEMASV:SCHEMAV_CVC_ELT_1: 元素'{http://www.accellera.org/XMLSchema/IPXACT/1685-2014}component':验证根没有匹配的全局声明。
即使我去掉 xml 中间的几百行实际上只有一个 ipxact:component 元素,我仍然得到同样的错误。
我试过只有一个组件元素,然后把所有的“肉”都挑出来,只是为了确认“组件”是我的问题。它仍然得到同样的错误。