其实就是手动搞完一次之后,把tcl console里面的命令都copy到一个.tcl文件里,下次运行的时候就直接在tool里run tcl script,比较省事
current_project axi_dma_4
update_ip_catalog -rebuild -scan_changes
report_ip_status -name ip_status
current_project axi_dma_4
upgrade_ip -vlnv xilinx.com:user:TOP2:2.0 [get_ips system_TOP2_0_3] -log ip_upgrade.log
export_ip_user_files -of_objects [get_ips system_TOP2_0_3] -no_script -sync -force -quiet
generate_target all [get_files D:/AAAYILE/axi_dma_4/axi_dma_4.srcs/sources_1/bd/system/system.bd]
catch { config_ip_cache -export [get_ips -all system_TOP2_0_3] }
catch { config_ip_cache -export [get_ips -all system_auto_pc_1] }
catch { config_ip_cache -export [get_ips -all system_auto_pc_0] }
catch { config_ip_cache -export [get_ips -all system_auto_pc_2] }
export_ip_user_files -of_objects [get_files D:/AAAYILE/axi_dma_4/axi_dma_4.srcs/sources_1/bd/system/system.bd] -no_script -sync -force -quiet
create_ip_run [get_files -of_objects [get_fileset sources_1] D:/AAAYILE/axi_dma_4/axi_dma_4.srcs/sources_1/bd/system/system.bd]
launch_runs system_TOP2_0_3_synth_1 -jobs 9
export_simulation -of_objects [get_files D:/AAAYILE/axi_dma_4/axi_dma_4.srcs/sources_1/bd/system/system.bd] -directory D:/AAAYILE/axi_dma_4/axi_dma_4.ip_user_files/sim_scripts -ip_user_files_dir D:/AAAYILE/axi_dma_4/axi_dma_4.ip_user_files -ipstatic_source_dir D:/AAAYILE/axi_dma_4/axi_dma_4.ip_user_files/ipstatic -lib_map_path [list {modelsim=D:/AAAYILE/axi_dma_4/axi_dma_4.cache/compile_simlib/modelsim} {questa=D:/AAAYILE/axi_dma_4/axi_dma_4.cache/compile_simlib/questa} {riviera=D:/AAAYILE/axi_dma_4/axi_dma_4.cache/compile_simlib/riviera} {activehdl=D:/AAAYILE/axi_dma_4/axi_dma_4.cache/compile_simlib/activehdl}] -use_ip_compiled_libs -force -quiet
reset_run synth_1
launch_runs impl_1 -to_step write_bitstream -jobs 9
# write_hw_platform -fixed -include_bit -force -file D:/AAAYILE/axi_dma_4/axi_dma_4.xsa
最后一条write hw platform其实是export platform,但是这条指令它不会等前面的指令完成才做,所以我就注释掉了。新开了另一个.tcl的脚本只放这条指令。等上一个script搞完就执行这个。
write_hw_platform -fixed -include_bit -force -file D:/AAAYILE/axi_dma_4/axi_dma_4.xsa