Use log_warning which does not immediately terminate.
authorlitghost <537074+litghost@users.noreply.github.com>
Fri, 3 Aug 2018 15:02:49 +0000 (08:02 -0700)
committerlitghost <537074+litghost@users.noreply.github.com>
Fri, 3 Aug 2018 15:05:45 +0000 (08:05 -0700)
frontends/blif/blifparse.cc

index e2be61da8c67b68f0ec6a5e086ce78b9e723282c..1d4cf39a80092b2407487d2e87043c45309f38ef 100644 (file)
@@ -275,7 +275,7 @@ void parse_blif(RTLIL::Design *design, std::istream &f, std::string dff_name, bo
 
                                if(lastcell == nullptr || module == nullptr)
                                {
-                                       log_error("No primative object to attach .cname %s.\n", p);
+                                       log_warning("No primative object to attach .cname %s.\n", p);
                                        goto error;
                                }
 
@@ -301,13 +301,13 @@ void parse_blif(RTLIL::Design *design, std::istream &f, std::string dff_name, bo
                                }
                                if (!strcmp(cmd, ".attr")) {
                                        if (obj_attributes == nullptr) {
-                                               log_error("No object to attach .attr too.\n");
+                                               log_warning("No object to attach .attr too.\n");
                                                goto error;
                                        }
                                        (*obj_attributes)[id_n] = const_v;
                                } else {
                                        if (obj_parameters == nullptr) {
-                                               log_error("No object to attach .param too.\n");
+                                               log_warning("No object to attach .param too.\n");
                                                goto error;
                                        }
                                        (*obj_parameters)[id_n] = const_v;