Let's start by building a simple Pass for Yosys. We will write a Pass that lists the names of the modules. We obtain the names of the modules registered in the design. yosys/passes/tests/mypass.cc void execute(std::vector<std::string> args, RTLIL::Desi</std::string>…