You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
356 B
Python

class PowerFVCheck:
registry = {}
name = None
def __init_subclass__(cls, name):
if name in cls.registry:
raise ValueError("Check name {!r} is already registered".format(name))
cls.registry[name] = cls
cls.name = name
def get_testbench(self, dut, *args, **kwargs):
raise NotImplementedError