mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-09 15:43:25 +00:00
Added design->scratchpad
This commit is contained in:
parent
4724d94fbc
commit
2a1b08aeb3
10 changed files with 91 additions and 64 deletions
|
@ -17,7 +17,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "opt_status.h"
|
||||
#include "kernel/register.h"
|
||||
#include "kernel/sigtools.h"
|
||||
#include "kernel/log.h"
|
||||
|
@ -179,7 +178,6 @@ struct OptMuxtreeWorker
|
|||
} else {
|
||||
log(" dead port %zd/%zd on %s %s.\n", port_idx+1, mi.ports.size(),
|
||||
mi.cell->type.c_str(), mi.cell->name.c_str());
|
||||
OPT_DID_SOMETHING = true;
|
||||
removed_count++;
|
||||
}
|
||||
}
|
||||
|
@ -434,6 +432,8 @@ struct OptMuxtreePass : public Pass {
|
|||
total_count += worker.removed_count;
|
||||
}
|
||||
}
|
||||
if (total_count)
|
||||
design->scratchpad_set_bool("opt.did_something", true);
|
||||
log("Removed %d multiplexer ports.\n", total_count);
|
||||
}
|
||||
} OptMuxtreePass;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue