From: Clifford Wolf Date: Tue, 19 Nov 2013 00:03:57 +0000 (+0100) Subject: Renamed temp module generated by "abc" pass from "logic" to "netlist" X-Git-Tag: yosys-0.2.0~360 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=63285b300ca8a3057345f6b28ee20ff709ede24d;p=yosys.git Renamed temp module generated by "abc" pass from "logic" to "netlist" --- diff --git a/passes/abc/abc.cc b/passes/abc/abc.cc index 41104ee99..c539dd17d 100644 --- a/passes/abc/abc.cc +++ b/passes/abc/abc.cc @@ -340,7 +340,7 @@ static void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std if (!cleanup) tempdir_name[0] = tempdir_name[4] = '_'; char *p = mkdtemp(tempdir_name); - log_header("Extracting gate logic of module `%s' to `%s/input.v'..\n", module->name.c_str(), tempdir_name); + log_header("Extracting gate netlist of module `%s' to `%s/input.v'..\n", module->name.c_str(), tempdir_name); if (p == NULL) log_error("For some reason mkdtemp() failed!\n"); @@ -369,7 +369,7 @@ static void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std log_error("Opening %s for writing failed: %s\n", p, strerror(errno)); free(p); - fprintf(f, "module logic ("); + fprintf(f, "module netlist ("); bool first = true; for (auto &si : signal_list) { if (!si.is_port) @@ -419,7 +419,7 @@ static void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std fprintf(f, "endmodule\n"); fclose(f); - log("Extracted %d gates and %zd wires to a logic network with %d inputs and %d outputs.\n", + log("Extracted %d gates and %zd wires to a netlist network with %d inputs and %d outputs.\n", count_gates, signal_list.size(), count_input, count_output); log_push(); @@ -510,9 +510,9 @@ static void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std free(p); log_header("Re-integrating ABC results.\n"); - RTLIL::Module *mapped_mod = mapped_design->modules["\\logic"]; + RTLIL::Module *mapped_mod = mapped_design->modules["\\netlist"]; if (mapped_mod == NULL) - log_error("ABC output file does not contain a module `logic'.\n"); + log_error("ABC output file does not contain a module `netlist'.\n"); for (auto &it : mapped_mod->wires) { RTLIL::Wire *w = it.second; RTLIL::Wire *wire = new RTLIL::Wire; diff --git a/passes/abc/blifparse.cc b/passes/abc/blifparse.cc index 31523ec12..17acc843b 100644 --- a/passes/abc/blifparse.cc +++ b/passes/abc/blifparse.cc @@ -53,7 +53,7 @@ RTLIL::Design *abc_parse_blif(FILE *f) RTLIL::State lut_default_state = RTLIL::State::Sx; int port_count = 0; - module->name = "\\logic"; + module->name = "\\netlist"; design->modules[module->name] = module; char buffer[4096];