File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -969,13 +969,10 @@ void prep_box(RTLIL::Design *design)
969969 if (it == module ->attributes .end ())
970970 continue ;
971971 bool box = it->second .as_bool ();
972- module ->attributes .erase (it);
973972 if (!box)
974973 continue ;
975974
976975 auto r = module ->attributes .insert (ID::abc9_box_id);
977- if (!r.second )
978- continue ;
979976 r.first ->second = abc9_box_id++;
980977
981978 if (module ->get_bool_attribute (ID::abc9_flop)) {
@@ -1097,8 +1094,9 @@ void prep_box(RTLIL::Design *design)
10971094 ss << std::endl;
10981095
10991096 auto &t = timing.setup_module (module );
1100- if (t.comb .empty ())
1097+ if (t.comb .empty () && !outputs. empty () && !inputs. empty ()) {
11011098 log_error (" Module '%s' with (* abc9_box *) has no timing (and thus no connectivity) information.\n " , log_id (module ));
1099+ }
11021100
11031101 for (const auto &o : outputs) {
11041102 first = true ;
You can’t perform that action at this time.
0 commit comments