mirror of https://github.com/YosysHQ/yosys.git
Chenged "extensions_map" to "extensions_list" in hierarchy.cc
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
c652774ca2
commit
ee3c12d6d9
|
@ -173,14 +173,14 @@ bool expand_module(RTLIL::Design *design, RTLIL::Module *module, bool flag_check
|
|||
|
||||
for (auto &dir : libdirs)
|
||||
{
|
||||
static const std::map<std::string, std::string> extensions_map =
|
||||
static const vector<pair<string, string>> extensions_list =
|
||||
{
|
||||
{".v", "verilog"},
|
||||
{".sv", "verilog -sv"},
|
||||
{".il", "ilang"}
|
||||
};
|
||||
|
||||
for (auto &ext : extensions_map)
|
||||
for (auto &ext : extensions_list)
|
||||
{
|
||||
filename = dir + "/" + RTLIL::unescape_id(cell->type) + ext.first;
|
||||
if (check_file_exists(filename)) {
|
||||
|
|
Loading…
Reference in New Issue