wrapcell - wrap individual cells into new modules

yosys> help wrapcell
wrapcell -name <format> [selection]
This command wraps the selected cells individually into modules. The name for
each wrapper module is derived from the template <format> by substituting
parameter values as specified in curly brackets. If the named module already
exists, it is reused.

If the template contains the special string '{%unused}', the command tracks
unused output ports -- specialized wrapper modules will be generated per every
distinct set of unused port bits as appearing on any selected cell.
-setattr <attribute-name>
set the given boolean attribute on each created wrapper module
-formatattr <attribute-name> <format>
set a string attribute on the created wrapper module by substituting
parameter values into <format>
Currently this command only supports wrapping internal cell types.