aboutsummaryrefslogtreecommitdiffstats
path: root/tests/various/plugin.cc
blob: be305fbdaf6607f8fb57fad8682edcbea0dcd849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "kernel/rtlil.h"

YOSYS_NAMESPACE_BEGIN

struct TestPass : public Pass {
	TestPass() : Pass("test", "test") { }
	void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
	{
		size_t argidx = 1;
		extra_args(args, argidx, design);
		log("Plugin test passed!\n");
	}
} TestPass;

YOSYS_NAMESPACE_END