Beispiel #1
0
static void compute_delta_arrays(struct s_router_opts router_opts,
		struct s_det_routing_arch det_routing_arch, t_segment_inf * segment_inf,
		t_timing_inf timing_inf, int longest_length) {

	vpr_printf(TIO_MESSAGE_INFO, "Computing delta_io_to_io lookup matrix, may take a few seconds, please wait...\n");
	compute_delta_io_to_io(router_opts, det_routing_arch, segment_inf, timing_inf);
	vpr_printf(TIO_MESSAGE_INFO, "Computing delta_io_to_clb lookup matrix, may take a few seconds, please wait...\n");
	compute_delta_io_to_clb(router_opts, det_routing_arch, segment_inf, timing_inf);
	vpr_printf(TIO_MESSAGE_INFO, "Computing delta_clb_to_io lookup matrix, may take a few seconds, please wait...\n");
	compute_delta_clb_to_io(router_opts, det_routing_arch, segment_inf, timing_inf);
	vpr_printf(TIO_MESSAGE_INFO, "Computing delta_clb_to_clb lookup matrix, may take a few seconds, please wait...\n");
	compute_delta_clb_to_clb(router_opts, det_routing_arch, segment_inf, timing_inf, longest_length);

#ifdef PRINT_ARRAYS
	lookup_dump = my_fopen(DUMPFILE, "w", 0);
	fprintf(lookup_dump, "\n\nprinting delta_clb_to_clb\n");
	print_array(delta_clb_to_clb, 0, nx - 1, 0, ny - 1);
	fprintf(lookup_dump, "\n\nprinting delta_io_to_clb\n");
	print_array(delta_io_to_clb, 0, nx, 0, ny);
	fprintf(lookup_dump, "\n\nprinting delta_clb_to_io\n");
	print_array(delta_clb_to_io, 0, nx, 0, ny);
	fprintf(lookup_dump, "\n\nprinting delta_io_to_io\n");
	print_array(delta_io_to_io, 0, nx + 1, 0, ny + 1);
	fclose(lookup_dump);
#endif

}
Beispiel #2
0
static void compute_delta_arrays(struct s_router_opts router_opts,
		struct s_det_routing_arch det_routing_arch, t_segment_inf *segment_inf,
		t_timing_inf timing_inf, int longest_length) {

	printf(
			"Computing delta_clb_to_clb lookup matrix, may take a few seconds, please wait...\n");
	compute_delta_clb_to_clb(router_opts, det_routing_arch, segment_inf,
			timing_inf, longest_length);
	printf(
			"Computing delta_inpad_to_clb lookup matrix, may take a few seconds, please wait...\n");
	compute_delta_inpad_to_clb(router_opts, det_routing_arch, segment_inf,
			timing_inf);
	printf(
			"Computing delta_clb_to_outpad lookup matrix, may take a few seconds, please wait...\n");
	compute_delta_clb_to_outpad(router_opts, det_routing_arch, segment_inf,
			timing_inf);
	printf(
			"Computing delta_inpad_to_outpad lookup matrix, may take a few seconds, please wait...\n");
	compute_delta_inpad_to_outpad(router_opts, det_routing_arch, segment_inf,
			timing_inf);
	printf("Finish computing arrays...\n");
//#ifdef PRINT_ARRAYS
	lookup_dump = my_fopen(DUMPFILE,"w",0);
	fprintf(lookup_dump,"\n\nprinting delta_clb_to_clb\n");
	print_array(delta_clb_to_clb, 0 , nx-1, 0, ny-1);
	fprintf(lookup_dump,"\n\nprinting delta_inpad_to_clb\n");
	print_array(delta_inpad_to_clb, 0, nx, 0, ny);
	fprintf(lookup_dump,"\n\nprinting delta_clb_to_outpad\n");
	print_array(delta_clb_to_outpad, 0, nx, 0, ny);
	fprintf(lookup_dump,"\n\nprinting delta_inpad_to_outpad\n");
	print_array(delta_inpad_to_outpad, 0, nx+1, 0, ny+ 1);
	fclose(lookup_dump);
//#endif
	fflush(stdout);

}