@@ -171,7 +171,7 @@ void free_arch(t_arch* arch) {
171
171
172
172
delete arch->architecture_id ;
173
173
174
- // Free internal model library
174
+ // Free internal model library
175
175
if (arch->model_library ) {
176
176
for (int i = 0 ; i < num_models_lib; ++i) {
177
177
vtr::t_linked_vptr* vptr = arch->model_library [i].pb_types ;
@@ -183,7 +183,7 @@ void free_arch(t_arch* arch) {
183
183
}
184
184
185
185
// Each model has different number of inputs/outputs - delete each model separately
186
- // Free INPAD
186
+ // Free INPAD
187
187
delete arch->model_library [LIB_INPUT].name ;
188
188
delete arch->model_library [LIB_INPUT].outputs ->name ;
189
189
delete[] arch->model_library [LIB_INPUT].outputs ;
@@ -216,7 +216,7 @@ void free_arch(t_arch* arch) {
216
216
delete arch->model_library [LIB_NAMES].outputs ->name ;
217
217
delete[] arch->model_library [LIB_NAMES].outputs ;
218
218
219
- // Free the library array
219
+ // Free the library array
220
220
delete[] arch->model_library ;
221
221
}
222
222
@@ -687,7 +687,7 @@ void alloc_and_load_default_child_for_pb_type(t_pb_type* pb_type,
687
687
for (i = 0 ; i < copy->num_annotations ; i++) {
688
688
copy->annotations [i].clock = vtr::strdup (pb_type->annotations [i].clock );
689
689
dot = strstr (pb_type->annotations [i].input_pins , " ." );
690
- copy->annotations [i].input_pins = new char [strlen (new_name) + strlen (dot) + 1 ];
690
+ copy->annotations [i].input_pins = new char [strlen (new_name) + strlen (dot) + 1 ];
691
691
copy->annotations [i].input_pins [0 ] = ' \0 ' ;
692
692
strcat (copy->annotations [i].input_pins , new_name);
693
693
strcat (copy->annotations [i].input_pins , dot);
@@ -852,7 +852,7 @@ void ProcessLutClass(t_pb_type* lut_pb_type) {
852
852
sprintf (lut_pb_type->modes [1 ].interconnect [1 ].input_string , " %s.%s" ,
853
853
default_name, out_port->name );
854
854
lut_pb_type->modes [1 ].interconnect [1 ].output_string = new char [strlen (lut_pb_type->name ) + strlen (out_port->name )
855
- + strlen (in_port->name ) + 2 ];
855
+ + strlen (in_port->name ) + 2 ];
856
856
sprintf (lut_pb_type->modes [1 ].interconnect [1 ].output_string , " %s.%s" ,
857
857
lut_pb_type->name , out_port->name );
858
858
lut_pb_type->modes [1 ].interconnect [1 ].infer_annotations = true ;
@@ -955,7 +955,7 @@ void ProcessMemoryClass(t_pb_type* mem_pb_type) {
955
955
sprintf (mem_pb_type->modes [0 ].interconnect [i_inter].input_string ,
956
956
" %s.%s" , input_name, input_port_name);
957
957
mem_pb_type->modes [0 ].interconnect [i_inter].output_string = new char [strlen (output_name) + strlen (output_port_name)
958
- + 2 * (6 + num_pb / 10 )];
958
+ + 2 * (6 + num_pb / 10 )];
959
959
sprintf (mem_pb_type->modes [0 ].interconnect [i_inter].output_string ,
960
960
" %s[%d:0].%s" , output_name, num_pb - 1 ,
961
961
output_port_name);
@@ -965,11 +965,11 @@ void ProcessMemoryClass(t_pb_type* mem_pb_type) {
965
965
mem_pb_type->modes [0 ].pb_type_children [0 ].num_output_pins -= (mem_pb_type->ports [i].num_pins - 1 );
966
966
967
967
mem_pb_type->modes [0 ].interconnect [i_inter].input_string = new char [strlen (input_name) + strlen (input_port_name)
968
- + 2 * (6 + num_pb / 10 )];
968
+ + 2 * (6 + num_pb / 10 )];
969
969
sprintf (mem_pb_type->modes [0 ].interconnect [i_inter].input_string ,
970
970
" %s[%d:0].%s" , input_name, num_pb - 1 , input_port_name);
971
971
mem_pb_type->modes [0 ].interconnect [i_inter].output_string = new char [strlen (output_name) + strlen (output_port_name)
972
- + 2 ];
972
+ + 2 ];
973
973
sprintf (mem_pb_type->modes [0 ].interconnect [i_inter].output_string ,
974
974
" %s.%s" , output_name, output_port_name);
975
975
}
@@ -997,7 +997,7 @@ void ProcessMemoryClass(t_pb_type* mem_pb_type) {
997
997
} else {
998
998
mem_pb_type->modes [0 ].interconnect [i_inter].type = DIRECT_INTERC;
999
999
mem_pb_type->modes [0 ].interconnect [i_inter].input_string = new char [strlen (input_name) + strlen (input_port_name)
1000
- + 2 * (6 + num_pb / 10 )];
1000
+ + 2 * (6 + num_pb / 10 )];
1001
1001
sprintf (mem_pb_type->modes [0 ].interconnect [i_inter].input_string ,
1002
1002
" %s[%d:%d].%s" , input_name, j, j, input_port_name);
1003
1003
mem_pb_type->modes [0 ].interconnect [i_inter].output_string = new char [strlen (output_name) + strlen (output_port_name) + 2 ];
@@ -1111,25 +1111,25 @@ void CreateModelLibrary(t_arch* arch) {
1111
1111
model_library[LIB_LATCH_RE].outputs [0 ].clock = " clk" ;
1112
1112
model_library[LIB_LATCH_RE].outputs [0 ].trigg_edge = TriggeringEdge::RISING_EDGE;
1113
1113
1114
- /*
1115
- * Duplicate LATCH model.
1116
- * Second separate model is required for falling edge support.
1117
- * It is a copy of LIB_LATCH_RE but with different trigg_edge configuration
1118
- * for inputs/outputs t_model_ports. It is used to represent FFs triggered at
1119
- * the falling edge of the clock, while LIB_LATCH_RE represents FFs triggered
1120
- * at the rising edge.
1121
- *
1122
- * VPR uses single model of each blif primitive type (e.g. '.latch', '.names') parsed from input blif file.
1123
- * That means models are used as configuration reference for parsed blif primitives when
1124
- * Latch instances are created in circuit evaluation, meaning:
1125
- * 1 unique blif primitive configuration (parsed from blif file) maps to
1126
- * 1 unique model (defined here, in VPR internal library) which represents configuration of
1127
- * multiple primitive instances (of given type and configuration) used in the circuit
1128
- *
1129
- * Models have to be duplicated because otherwise VPR will use the configuration
1130
- * of the last parsed '.latch' for each FF in the design
1131
- *
1132
- */
1114
+ /*
1115
+ * Duplicate LATCH model.
1116
+ * Second separate model is required for falling edge support.
1117
+ * It is a copy of LIB_LATCH_RE but with different trigg_edge configuration
1118
+ * for inputs/outputs t_model_ports. It is used to represent FFs triggered at
1119
+ * the falling edge of the clock, while LIB_LATCH_RE represents FFs triggered
1120
+ * at the rising edge.
1121
+ *
1122
+ * VPR uses single model of each blif primitive type (e.g. '.latch', '.names') parsed from input blif file.
1123
+ * That means models are used as configuration reference for parsed blif primitives when
1124
+ * Latch instances are created in circuit evaluation, meaning:
1125
+ * 1 unique blif primitive configuration (parsed from blif file) maps to
1126
+ * 1 unique model (defined here, in VPR internal library) which represents configuration of
1127
+ * multiple primitive instances (of given type and configuration) used in the circuit
1128
+ *
1129
+ * Models have to be duplicated because otherwise VPR will use the configuration
1130
+ * of the last parsed '.latch' for each FF in the design
1131
+ *
1132
+ */
1133
1133
// LATCH triggered at FALLING EDGE
1134
1134
model_library[LIB_LATCH_FE].name = vtr::strdup (MODEL_LATCH);
1135
1135
model_library[LIB_LATCH_FE].index = LIB_LATCH_FE;
0 commit comments