Coverage for pyEDAA/ToolSetup/Aldec/__init__.py: 92%

24 statements  

« prev     ^ index     » next       coverage.py v7.6.5, created at 2024-11-15 01:13 +0000

1from typing import Dict 

2 

3from pyTooling.Decorators import export 

4 

5from .. import Vendor, Tool, ToolInstance 

6 

7 

8@export 

9class ActiveHDLInstance(ToolInstance): 

10 pass 

11 

12 

13@export 

14class RivieraPROInstance(ToolInstance): 

15 pass 

16 

17 

18@export 

19class ActiveHDL(Tool): 

20 _instanceClass = ActiveHDLInstance 

21 

22 

23@export 

24class RivieraPRO(Tool): 

25 _instanceClass = RivieraPROInstance 

26 

27 

28@export 

29class Aldec(Vendor): 

30 _toolClasses: Dict[str, Tool] = { 

31 "Active-HDL": ActiveHDL, 

32 "Riviera-PRO": RivieraPRO, 

33 } 

34 

35 @property 

36 def ActiveHDL(self) -> ActiveHDL: 

37 return self.__getitem__("Active-HDL") 

38 

39 @property 

40 def RivieraPRO(self) -> RivieraPRO: 

41 return self.__getitem__("Riviera-PRO")