yosys/tests/various/plugin.cc

16 lines
326 B
C++
Raw Normal View History

2020-04-09 11:45:20 -05:00
#include "kernel/rtlil.h"
YOSYS_NAMESPACE_BEGIN
struct TestPass : public Pass {
TestPass() : Pass("test", "test") { }
2020-06-18 18:34:52 -05:00
void execute(std::vector<std::string> args, RTLIL::Design *design) override
2020-04-09 11:45:20 -05:00
{
size_t argidx = 1;
extra_args(args, argidx, design);
log("Plugin test passed!\n");
}
} TestPass;
YOSYS_NAMESPACE_END