mirror of https://github.com/YosysHQ/yosys.git
Check blackbox attribute in techmap/simplemap
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
5b915f0153
commit
b7445ef387
|
@ -599,7 +599,7 @@ struct SimplemapPass : public Pass {
|
|||
simplemap_get_mappers(mappers);
|
||||
|
||||
for (auto mod : design->modules()) {
|
||||
if (!design->selected(mod))
|
||||
if (!design->selected(mod) || mod->get_blackbox_attribute())
|
||||
continue;
|
||||
std::vector<RTLIL::Cell*> cells = mod->cells();
|
||||
for (auto cell : cells) {
|
||||
|
|
|
@ -385,7 +385,7 @@ struct TechmapWorker
|
|||
{
|
||||
std::string mapmsg_prefix = in_recursion ? "Recursively mapping" : "Mapping";
|
||||
|
||||
if (!design->selected(module))
|
||||
if (!design->selected(module) || module->get_blackbox_attribute())
|
||||
return false;
|
||||
|
||||
bool log_continue = false;
|
||||
|
|
Loading…
Reference in New Issue