open_project -project {D:\FABRIC_SRAM_INIT\designer\Top\Top_fp\Top.pro}
enable_device -name {M2S050T_ES} -enable 1
set_programming_file -name {M2S050T_ES} -file {D:\FABRIC_SRAM_INIT\designer\Top\export\Top.stp}
set_programming_action -action {PROGRAM} -name {M2S050T_ES} 
catch {run_selected_actions} return_val
set_programming_file -name {M2S050T_ES} -no_file
save_project
close_project
if { $return_val != 0 } {
  exit 1 }
