34 log(
" scatter [selection]\n");
36 log(
"This command adds additional intermediate nets on all cell ports. This is used\n");
37 log(
"for testing the correct use of the SigMap helper in passes. If you don't know\n");
38 log(
"what this means: don't worry -- you only need this pass when testing your own\n");
39 log(
"extensions to Yosys.\n");
41 log(
"Use the opt_clean command to get rid of the additional nets.\n");
49 for (
auto &mod_it : design->
modules_)
51 if (!design->
selected(mod_it.second))
54 for (
auto &c : mod_it.second->cells_)
55 for (
auto &p : c.second->connections_)
61 mod_it.second->connect(sigsig);
64 mod_it.second->connect(sigsig);
bool selected(T1 *module) const
#define PRIVATE_NAMESPACE_BEGIN
bool cell_output(RTLIL::IdString type, RTLIL::IdString port)
#define PRIVATE_NAMESPACE_END
#define USING_YOSYS_NAMESPACE
std::map< RTLIL::IdString, RTLIL::Module * > modules_
void log(const char *format,...)
void extra_args(std::vector< std::string > args, size_t argidx, RTLIL::Design *design, bool select=true)
std::pair< SigSpec, SigSpec > SigSig
virtual void execute(std::vector< std::string > args, RTLIL::Design *design)