mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
Various win32 / vs build fixes
This commit is contained in:
parent
973d376733
commit
468ae92374
8 changed files with 28 additions and 23 deletions
|
@ -1142,7 +1142,7 @@ struct SelectPass : public Pass {
|
|||
|
||||
if (list_mode || count_mode || !write_file.empty())
|
||||
{
|
||||
#define LOG_OBJECT(...) do { if (list_mode) log(__VA_ARGS__); if (f != NULL) fprintf(f, __VA_ARGS__); total_count++; } while (0)
|
||||
#define LOG_OBJECT(...) { if (list_mode) log(__VA_ARGS__); if (f != NULL) fprintf(f, __VA_ARGS__); total_count++; }
|
||||
int total_count = 0;
|
||||
FILE *f = NULL;
|
||||
if (!write_file.empty()) {
|
||||
|
@ -1161,16 +1161,16 @@ struct SelectPass : public Pass {
|
|||
if (sel->selected_module(mod_it.first)) {
|
||||
for (auto &it : mod_it.second->wires_)
|
||||
if (sel->selected_member(mod_it.first, it.first))
|
||||
LOG_OBJECT("%s/%s\n", id2cstr(mod_it.first), id2cstr(it.first));
|
||||
LOG_OBJECT("%s/%s\n", id2cstr(mod_it.first), id2cstr(it.first))
|
||||
for (auto &it : mod_it.second->memories)
|
||||
if (sel->selected_member(mod_it.first, it.first))
|
||||
LOG_OBJECT("%s/%s\n", id2cstr(mod_it.first), id2cstr(it.first));
|
||||
LOG_OBJECT("%s/%s\n", id2cstr(mod_it.first), id2cstr(it.first))
|
||||
for (auto &it : mod_it.second->cells_)
|
||||
if (sel->selected_member(mod_it.first, it.first))
|
||||
LOG_OBJECT("%s/%s\n", id2cstr(mod_it.first), id2cstr(it.first));
|
||||
LOG_OBJECT("%s/%s\n", id2cstr(mod_it.first), id2cstr(it.first))
|
||||
for (auto &it : mod_it.second->processes)
|
||||
if (sel->selected_member(mod_it.first, it.first))
|
||||
LOG_OBJECT("%s/%s\n", id2cstr(mod_it.first), id2cstr(it.first));
|
||||
LOG_OBJECT("%s/%s\n", id2cstr(mod_it.first), id2cstr(it.first))
|
||||
}
|
||||
}
|
||||
if (count_mode)
|
||||
|
|
|
@ -174,7 +174,7 @@ bool expand_module(RTLIL::Design *design, RTLIL::Module *module, bool flag_check
|
|||
for (auto &dir : libdirs)
|
||||
{
|
||||
filename = dir + "/" + RTLIL::unescape_id(cell->type) + ".v";
|
||||
if (access(filename.c_str(), F_OK) == 0) {
|
||||
if (check_file_exists(filename)) {
|
||||
std::vector<std::string> args;
|
||||
args.push_back(filename);
|
||||
Frontend::frontend_call(design, NULL, filename, "verilog");
|
||||
|
@ -182,7 +182,7 @@ bool expand_module(RTLIL::Design *design, RTLIL::Module *module, bool flag_check
|
|||
}
|
||||
|
||||
filename = dir + "/" + RTLIL::unescape_id(cell->type) + ".il";
|
||||
if (access(filename.c_str(), F_OK) == 0) {
|
||||
if (check_file_exists(filename)) {
|
||||
std::vector<std::string> args;
|
||||
args.push_back(filename);
|
||||
Frontend::frontend_call(design, NULL, filename, "ilang");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue