PSP顶层是一个xml文件,主要描述该Platform主要的components:
主要components都有自己的xml描述:
文件存储结构,recommended
by Impulse C:
Example:
gidel_procwizard_ps3.xml //top level
Platform definition
<?xml
version='1.0'?>
<!DOCTYPE
architecture PUBLIC "" "">
<architecture
version="1.0" name="GiDEL PROCWizard (PROCStar III)">
<bus name="procwiz0"
file="VHDL/GiDEL/PROCWizard_PS/bus_PS3.xml"/>
<pe name="pe0" target="VHDL/target.xml"
technology="VHDL/Altera/technology.xml"
system="VHDL/Generic/Generic/system.xml" cpu="cpu0"
bus="procwiz0"/>
<proc
name="cpu0" file="GiDEL/cpu.xml"
bus="procwiz0"/>
<mem name="mem0" bus="procwiz0"
alloc="malloc"/>
<exporter
file="GiDEL/GiDEL_export.tcl"/>
<library name="float"
file="VHDL/Altera/float.xml"/>
</architecture>
负责生成bus wrapper的bus_PS3.xml文件定义了所需hardware
library和Tcl script:
<?xml
version='1.0'?>
<!DOCTYPE
bus PUBLIC "" "">
<bus
name="procwizard" version="1.0">
<param name="width"
value="*"/>
//生成bus wrapper HDL所需的Tcl脚本
<busgen
file="VHDL/GiDEL/PROCWizard_PS/genbus_PS3.tcl"/>
//所需库文件
<require file="VHDL/GiDEL/PROCWizard_PS/lib/wr_mem_intfc.vhd"
dst="lib" type="hdl"/>
<require
file="VHDL/GiDEL/PROCWizard_PS/lib/rd_mem_intfc.vhd"
dst="lib" type="hdl"/>
<require
file="VHDL/GiDEL/PROCWizard_PS/lib/inp_stream_intfc.vhd"
dst="lib" type="hdl"/>
<require file="VHDL/GiDEL/PROCWizard_PS/lib/out_stream_intfc.vhd"
dst="lib" type="hdl"/>
文章评论(0条评论)
登录后参与讨论