File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -274,6 +274,24 @@ class VprConstraintsSerializer final : public uxsd::VprConstraintsBase<VprConstr
274
274
}
275
275
276
276
virtual inline void finish_partition_add_region (void *& /* ctx*/ ) final {
277
+ const auto [layer_low, layer_high] = loaded_region.get_layer_range ();
278
+
279
+ if (layer_low < 0 || layer_high < 0 || layer_high < layer_low) {
280
+ if (report_error_ == nullptr ) {
281
+ VPR_ERROR (VPR_ERROR_PLACE, " \n Illegal layer numbers are specified in the constraint file.\n " );
282
+ } else {
283
+ report_error_->operator ()(" Illegal layer numbers are specified in the constraint file." );
284
+ }
285
+ }
286
+
287
+ if (loaded_region.empty ()) {
288
+ if (report_error_ == nullptr ) {
289
+ VPR_ERROR (VPR_ERROR_PLACE, " \n The specified region is empty.\n " );
290
+ } else {
291
+ report_error_->operator ()(" The specified region is empty." );
292
+ }
293
+ }
294
+
277
295
loaded_part_region.add_to_part_region (loaded_region);
278
296
279
297
Region clear_region;
You can’t perform that action at this time.
0 commit comments