clean up warnings in SDC pb_type generator
This commit is contained in:
parent
924136e7a2
commit
27c234711e
vpr7_x2p/vpr/SRC/fpga_x2p/verilog
|
@ -74,10 +74,7 @@ void sdc_dump_annotation(char* from_path, // includes the cell
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
void dump_sdc_pb_graph_pin_interc(t_sram_orgz_info* cur_sram_orgz_info,
|
||||
FILE* fp,
|
||||
enum e_spice_pin2pin_interc_type pin2pin_interc_type,
|
||||
void dump_sdc_pb_graph_pin_interc(FILE* fp,
|
||||
t_pb_graph_pin* des_pb_graph_pin,
|
||||
t_mode* cur_mode,
|
||||
char* instance_name) {
|
||||
|
@ -284,8 +281,7 @@ void dump_sdc_pb_graph_pin_interc(t_sram_orgz_info* cur_sram_orgz_info,
|
|||
|
||||
|
||||
/* Print the SPICE interconnections of a port defined in pb_graph */
|
||||
void dump_sdc_pb_graph_port_interc(t_sram_orgz_info* cur_sram_orgz_info,
|
||||
FILE* fp,
|
||||
void dump_sdc_pb_graph_port_interc(FILE* fp,
|
||||
t_pb_graph_node* cur_pb_graph_node,
|
||||
enum e_spice_pb_port_type pb_port_type,
|
||||
t_mode* cur_mode,
|
||||
|
@ -305,9 +301,7 @@ void dump_sdc_pb_graph_port_interc(t_sram_orgz_info* cur_sram_orgz_info,
|
|||
for (ipin = 0; ipin < cur_pb_graph_node->num_input_pins[iport]; ipin++) {
|
||||
/* If this is a idle block, we set 0 to the selected edge*/
|
||||
/* Get the selected edge of current pin*/
|
||||
dump_sdc_pb_graph_pin_interc (cur_sram_orgz_info,
|
||||
fp,
|
||||
INPUT2INPUT_INTERC,
|
||||
dump_sdc_pb_graph_pin_interc (fp,
|
||||
&(cur_pb_graph_node->input_pins[iport][ipin]),
|
||||
cur_mode,
|
||||
instance_name);
|
||||
|
@ -317,9 +311,7 @@ void dump_sdc_pb_graph_port_interc(t_sram_orgz_info* cur_sram_orgz_info,
|
|||
case SPICE_PB_PORT_OUTPUT:
|
||||
for (iport = 0; iport < cur_pb_graph_node->num_output_ports; iport++) {
|
||||
for (ipin = 0; ipin < cur_pb_graph_node->num_output_pins[iport]; ipin++) {
|
||||
dump_sdc_pb_graph_pin_interc(cur_sram_orgz_info,
|
||||
fp,
|
||||
OUTPUT2OUTPUT_INTERC,
|
||||
dump_sdc_pb_graph_pin_interc(fp,
|
||||
&(cur_pb_graph_node->output_pins[iport][ipin]),
|
||||
cur_mode,
|
||||
instance_name);
|
||||
|
@ -329,9 +321,7 @@ void dump_sdc_pb_graph_port_interc(t_sram_orgz_info* cur_sram_orgz_info,
|
|||
case SPICE_PB_PORT_CLOCK:
|
||||
for (iport = 0; iport < cur_pb_graph_node->num_clock_ports; iport++) {
|
||||
for (ipin = 0; ipin < cur_pb_graph_node->num_clock_pins[iport]; ipin++) {
|
||||
dump_sdc_pb_graph_pin_interc(cur_sram_orgz_info,
|
||||
fp,
|
||||
INPUT2INPUT_INTERC,
|
||||
dump_sdc_pb_graph_pin_interc(fp,
|
||||
&(cur_pb_graph_node->clock_pins[iport][ipin]),
|
||||
cur_mode,
|
||||
instance_name);
|
||||
|
@ -347,8 +337,7 @@ void dump_sdc_pb_graph_port_interc(t_sram_orgz_info* cur_sram_orgz_info,
|
|||
return;
|
||||
}
|
||||
|
||||
void sdc_dump_cur_node_constraints(t_sram_orgz_info* cur_sram_orgz_info,
|
||||
FILE* fp,
|
||||
void sdc_dump_cur_node_constraints(FILE* fp,
|
||||
t_pb_graph_node* cur_pb_graph_node,
|
||||
int select_mode_index,
|
||||
char* instance_name) {
|
||||
|
@ -381,7 +370,7 @@ void sdc_dump_cur_node_constraints(t_sram_orgz_info* cur_sram_orgz_info,
|
|||
* |
|
||||
* input_pins, edges, output_pins
|
||||
*/
|
||||
dump_sdc_pb_graph_port_interc(cur_sram_orgz_info, fp,
|
||||
dump_sdc_pb_graph_port_interc(fp,
|
||||
cur_pb_graph_node,
|
||||
SPICE_PB_PORT_OUTPUT,
|
||||
cur_mode,
|
||||
|
@ -398,13 +387,13 @@ void sdc_dump_cur_node_constraints(t_sram_orgz_info* cur_sram_orgz_info,
|
|||
for (jpb = 0; jpb < cur_pb_type->modes[select_mode_index].pb_type_children[ipb].num_pb; jpb++) {
|
||||
child_pb_graph_node = &(cur_pb_graph_node->child_pb_graph_nodes[select_mode_index][ipb][jpb]);
|
||||
/* For each child_pb_graph_node input pins*/
|
||||
dump_sdc_pb_graph_port_interc(cur_sram_orgz_info, fp,
|
||||
dump_sdc_pb_graph_port_interc(fp,
|
||||
child_pb_graph_node,
|
||||
SPICE_PB_PORT_INPUT,
|
||||
cur_mode,
|
||||
instance_name);
|
||||
/* TODO: for clock pins, we should do the same work */
|
||||
dump_sdc_pb_graph_port_interc(cur_sram_orgz_info, fp,
|
||||
dump_sdc_pb_graph_port_interc(fp,
|
||||
child_pb_graph_node,
|
||||
SPICE_PB_PORT_CLOCK,
|
||||
cur_mode,
|
||||
|
@ -449,7 +438,7 @@ void sdc_rec_dump_child_pb_graph_node(t_sram_orgz_info* cur_sram_orgz_info,
|
|||
sdc_rec_dump_child_pb_graph_node(cur_sram_orgz_info, fp, &(cur_pb_graph_node->child_pb_graph_nodes[mode_index][ipb][jpb]), instance_name);
|
||||
}
|
||||
}
|
||||
sdc_dump_cur_node_constraints(cur_sram_orgz_info, fp, cur_pb_graph_node, mode_index, instance_name); // graph_head only has one pb_type
|
||||
sdc_dump_cur_node_constraints(fp, cur_pb_graph_node, mode_index, instance_name); // graph_head only has one pb_type
|
||||
}
|
||||
|
||||
return;
|
||||
|
|
|
@ -4,22 +4,18 @@ void sdc_dump_annotation(char* from_path, // includes the cell
|
|||
FILE* fp,
|
||||
t_pb_graph_edge* cur_edge);
|
||||
|
||||
void dump_sdc_pb_graph_pin_interc(t_sram_orgz_info* cur_sram_orgz_info,
|
||||
FILE* fp,
|
||||
enum e_spice_pin2pin_interc_type pin2pin_interc_type,
|
||||
void dump_sdc_pb_graph_pin_interc(FILE* fp,
|
||||
t_pb_graph_pin* des_pb_graph_pin,
|
||||
t_mode* cur_mode,
|
||||
char* instance_name);
|
||||
|
||||
void dump_sdc_pb_graph_port_interc(t_sram_orgz_info* cur_sram_orgz_info,
|
||||
FILE* fp,
|
||||
void dump_sdc_pb_graph_port_interc(FILE* fp,
|
||||
t_pb_graph_node* cur_pb_graph_node,
|
||||
enum e_spice_pb_port_type pb_port_type,
|
||||
t_mode* cur_mode,
|
||||
char* instance_name);
|
||||
|
||||
void sdc_dump_cur_node_constraints(t_sram_orgz_info* cur_sram_orgz_info,
|
||||
FILE* fp,
|
||||
void sdc_dump_cur_node_constraints(FILE* fp,
|
||||
t_pb_graph_node* cur_pb_graph_node,
|
||||
int select_mode_index,
|
||||
char* instance_name);
|
||||
|
|
Loading…
Reference in New Issue