From: Miodrag Milanovic Date: Fri, 18 Mar 2022 13:47:35 +0000 (+0100) Subject: More verbose warnings X-Git-Tag: yosys-0.16~37 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=55eed8df574f2aa4d854c2ee74f591a202cbdb83;p=yosys.git More verbose warnings --- diff --git a/kernel/fstdata.cc b/kernel/fstdata.cc index 82f8ff1df..6cf28625c 100644 --- a/kernel/fstdata.cc +++ b/kernel/fstdata.cc @@ -101,7 +101,8 @@ void FstData::extractVarNames() case FST_HT_SCOPE: { snum++; std::string fst_scope_name = fstReaderPushScope(ctx, h->u.scope.name, (void *)(snum)); - scopes.push_back(fst_scope_name); + if (h->u.scope.typ == FST_ST_VCD_MODULE) + scopes.push_back(fst_scope_name); break; } case FST_HT_UPSCOPE: { diff --git a/passes/sat/sim.cc b/passes/sat/sim.cc index 46fe1e23a..f225ebd15 100644 --- a/passes/sat/sim.cc +++ b/passes/sat/sim.cc @@ -809,14 +809,16 @@ struct SimInstance if (item.second==0) continue; // Ignore signals not found Const fst_val = Const::from_string(shared->fst->valueOf(item.second)); Const sim_val = get_state(item.first); - if (sim_val.size()!=fst_val.size()) - log_error("Signal '%s' size is different in gold and gate.\n", log_id(item.first)); + if (sim_val.size()!=fst_val.size()) { + log_warning("Signal '%s.%s' size is different in gold and gate.\n", scope.c_str(), log_id(item.first)); + continue; + } if (shared->sim_mode == SimulationMode::sim) { // No checks performed when using stimulus } else if (shared->sim_mode == SimulationMode::gate && !fst_val.is_fully_def()) { // FST data contains X for(int i=0;isim_mode == SimulationMode::gold && !sim_val.is_fully_def()) { // sim data contains X for(int i=0;i