app_cpu1.tcl 613 B

12345678910111213141516171819202122
  1. set project_name [lindex $argv 0]
  2. set proc_name ps7_cortexa9_1
  3. set hard_path tmp/$project_name.hard
  4. set cpu1_path tmp/$project_name.cpu1
  5. file mkdir $hard_path
  6. file copy -force tmp/$project_name.hwdef $hard_path/$project_name.hdf
  7. open_hw_design $hard_path/$project_name.hdf
  8. create_sw_design -proc $proc_name -os standalone system
  9. set_property CONFIG.stdin {none} [get_os]
  10. set_property CONFIG.stdout {none} [get_os]
  11. set_property CONFIG.extra_compiler_flags { -g -DUSE_AMP=1 -DSTDOUT_REDIR=1} [get_sw_processor]
  12. generate_bsp -proc $proc_name -dir $cpu1_path/app_cpu1_bsp
  13. close_hw_design [current_hw_design]