VPR-7.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
vpr_utils.h
Go to the documentation of this file.
1 #ifndef VPR_UTILS_H
2 #define VPR_UTILS_H
3 
4 #include "util.h"
5 
6 void print_tabs(FILE * fpout, int num_tab);
7 
8 boolean is_opin(int ipin, t_type_ptr type);
9 
10 void get_class_range_for_block(INP int iblk, OUTP int *class_low,
11  OUTP int *class_high);
12 
13 void sync_grid_to_blocks(INP int L_num_blocks,
14  INP const struct s_block block_list[], INP int L_nx, INP int L_ny,
15  INOUTP struct s_grid_tile **L_grid);
16 
19 int get_max_nets_in_pb_type(const t_pb_type *pb_type);
20 boolean primitive_type_feasible(int iblk, const t_pb_type *cur_pb_type);
26 int num_ext_inputs_logical_block(int iblk);
27 
29 
30 void get_port_pin_from_blk_pin(int blk_type_index, int blk_pin, int * port,
31  int * port_pin);
33 
34 void get_blk_pin_from_port_pin(int blk_type_index, int port,int port_pin,
35  int * blk_pin);
37 
38 void alloc_and_load_idirect_from_blk_pin(t_direct_inf* directs, int num_directs,
39  int *** idirect_from_blk_pin, int *** direct_type_from_blk_pin);
40 
41 void parse_direct_pin_name(char * src_string, int line, int * start_pin_index,
42  int * end_pin_index, char * pb_type_name, char * port_name);
43 
44 
45 void free_cb(t_pb *pb);
46 void free_pb_stats(t_pb *pb);
47 void free_pb(t_pb *pb);
48 
49 
50 #endif
51 
void free_pb(t_pb *pb)
Definition: vpr_utils.c:529
t_pb_graph_pin * get_pb_graph_node_pin_from_block_pin(int iblock, int ipin)
Definition: vpr_utils.c:403
void print_tabs(FILE *fpout, int num_tab)
Definition: vpr_utils.c:76
void alloc_and_load_idirect_from_blk_pin(t_direct_inf *directs, int num_directs, int ***idirect_from_blk_pin, int ***direct_type_from_blk_pin)
Definition: vpr_utils.c:1073
int get_max_nets_in_pb_type(const t_pb_type *pb_type)
Definition: vpr_utils.c:196
void get_class_range_for_block(INP int iblk, OUTP int *class_low, OUTP int *class_high)
Definition: vpr_utils.c:162
int get_max_depth_of_pb_type(t_pb_type *pb_type)
Definition: vpr_utils.c:222
void sync_grid_to_blocks(INP int L_num_blocks, INP const struct s_block block_list[], INP int L_nx, INP int L_ny, INOUTP struct s_grid_tile **L_grid)
Definition: vpr_utils.c:84
int get_max_primitives_in_pb_type(t_pb_type *pb_type)
Definition: vpr_utils.c:173
void free_cb(t_pb *pb)
Definition: vpr_utils.c:508
void free_pb_stats(t_pb *pb)
Definition: vpr_utils.c:614
t_pb_graph_pin * get_pb_graph_node_pin_from_clb_net(int inet, int ipin)
Definition: vpr_utils.c:391
boolean is_opin(int ipin, t_type_ptr type)
Definition: vpr_utils.c:148
float compute_primitive_base_cost(INP t_pb_graph_node *primitive)
Definition: vpr_utils.c:452
#define INOUTP
Definition: util.h:21
int ** alloc_and_load_net_pin_index()
Definition: vpr_utils.c:651
int num_ext_inputs_logical_block(int iblk)
Definition: vpr_utils.c:458
t_pb_graph_pin * get_pb_graph_node_pin_from_model_port_pin(t_model_ports *model_port, int model_pin, t_pb_graph_node *pb_graph_node)
Definition: vpr_utils.c:303
#define INP
Definition: util.h:19
void free_port_pin_from_blk_pin(void)
Definition: vpr_utils.c:736
void free_blk_pin_from_port_pin(void)
Definition: vpr_utils.c:840
void get_blk_pin_from_port_pin(int blk_type_index, int port, int port_pin, int *blk_pin)
Definition: vpr_utils.c:818
void parse_direct_pin_name(char *src_string, int line, int *start_pin_index, int *end_pin_index, char *pb_type_name, char *port_name)
Definition: vpr_utils.c:925
#define OUTP
Definition: util.h:20
void get_port_pin_from_blk_pin(int blk_type_index, int blk_pin, int *port, int *port_pin)
Definition: vpr_utils.c:701
t_pb_graph_pin * get_pb_graph_node_pin_from_vpack_net(int inet, int ipin)
Definition: vpr_utils.c:343
boolean primitive_type_feasible(int iblk, const t_pb_type *cur_pb_type)
Definition: vpr_utils.c:241