Skip internal modules when generating box_unique_id
authorEddie Hung <eddie@fpgeh.com>
Mon, 3 Jun 2019 19:31:23 +0000 (12:31 -0700)
committerEddie Hung <eddie@fpgeh.com>
Mon, 3 Jun 2019 19:31:23 +0000 (12:31 -0700)
frontends/aiger/aigerparse.cc

index 0e210c456944e58c17adf6d47d1d7b99829e251b..c951e1fbb4c239b6a277216cabe2b173a6dc87e2 100644 (file)
@@ -198,6 +198,7 @@ void AigerReader::parse_xaiger()
 
     dict<int,IdString> box_lookup;
     for (auto m : design->modules()) {
+        if (m->name[0] == '$') continue;
         auto it = m->attributes.find("\\abc_box_id");
         if (it == m->attributes.end())
             continue;