294 const t_pb_type *pb_type, *child_pb_type;
297 int port_index, node_index;
306 fprintf(fpout,
"<block name=\"%s\" instance=\"%s[%d]\">\n", pb->
name,
307 pb_type->
name, pb_index);
309 fprintf(fpout,
"<block name=\"%s\" instance=\"%s[%d]\" mode=\"%s\">\n",
314 fprintf(fpout,
"\t<inputs>\n");
316 for (i = 0; i < pb_type->
num_ports; i++) {
319 fprintf(fpout,
"\t\t<port name=\"%s\">",
332 fprintf(fpout,
"</port>\n");
337 fprintf(fpout,
"\t</inputs>\n");
339 column = tab_depth * TAB_LENGTH + 8;
341 fprintf(fpout,
"\t<outputs>\n");
343 for (i = 0; i < pb_type->
num_ports; i++) {
347 fprintf(fpout,
"\t\t<port name=\"%s\">",
354 fprintf(fpout,
"</port>\n");
359 fprintf(fpout,
"\t</outputs>\n");
361 column = tab_depth * TAB_LENGTH + 8;
363 fprintf(fpout,
"\t<clocks>\n");
365 for (i = 0; i < pb_type->
num_ports; i++) {
368 fprintf(fpout,
"\t\t<port name=\"%s\">",
381 fprintf(fpout,
"</port>\n");
386 fprintf(fpout,
"\t</clocks>\n");
400 for (k = 0; k < child_pb_type->
num_ports && !is_used; k++) {
416 j, is_used, tab_depth + 1, fpout);
422 fprintf(fpout,
"</block>\n");
t_pb_graph_pin ** clock_pins
static void print_interconnect(int inode, int *column, int num_tabs, FILE *fpout)
struct s_pb_type * pb_type_children
t_pb_graph_pin ** output_pins
static void print_pb(FILE *fpout, t_pb *pb, int pb_index, int tab_depth)
struct s_pb_graph_node *** child_pb_graph_nodes
static void print_open_pb_graph_node(t_pb_graph_node *pb_graph_node, int pb_index, boolean is_used, int tab_depth, FILE *fpout)
struct s_pb_type * pb_type
static void print_tabs(FILE *fpout, int num_tabs)
static void print_net_name(int inet, int *column, int num_tabs, FILE *fpout)
t_pb_graph_node * pb_graph_node
t_pb_graph_pin ** input_pins