wrapper.sysdef"
			
			if {[file exists $source_file] == 0} { 

				set tmp_error ""
				append tmp_error "-E- " $project_name " associated to " $board_name " has not been built. Use the -usage option for more details."
				error $tmp_error
			
			} else {
		
			set target_dir ""
			append target_dir "ip_prototype/test/prj/" $project_name "." $board_name
			
			set source_file ""
			append source_file "../../../build/prj/" $project_name "." $board_name "/prototype.runs/impl_1/design_1_wrapper.sysdef"
		
			
		
			#export to SDK
			cd $target_dir
			file copy -force $source_file design_1_wrapper.hdf
			file copy -force ../../../../.metadata/build_sdk_project.tcl build_sdk_project.tcl
			file copy -force ../../../../.metadata/run_fpga_prototype.tcl run_fpga_prototype.tcl
			
			cd ../../../../
			
			
			# Create SDK Project
			puts "Calling SDK GUI ..."
			
			set command_name "|xsdk -workspace "
			append command_name $target_dir
			append command_name "/workspace1"

			set sdk_p [open $command_name r]
			
			}
		}

	
	}
	}

}


	
  

	puts ""
    if {$error} {
		puts "SDK: FPGA software project built ERROR. Please run tclapp::icl::protoip::ip_prototype_build_sdk_debug to open SDK GUI and debug the software project using Eclipse"
		puts ""
		return -code error
    } else {
		puts ""
		return -code ok
	}

}



