Coverage for pyEDAA/ToolSetup/Lattice/__init__.py: 88%

20 statements  

« prev     ^ index     » next       coverage.py v7.5.1, created at 2024-05-17 00:56 +0000

1from typing import Dict 

2 

3from pyTooling.Decorators import export 

4 

5from .. import Tool, Vendor 

6from ..Aldec import ActiveHDL 

7from ..SiemensEDA import ModelSim 

8 

9 

10@export 

11class Diamond(Tool): 

12 pass 

13 

14 

15@export 

16class Lattice(Vendor): 

17 _toolClasses: Dict[str, Tool] = { 

18 "Diamond": Diamond, 

19 "Active-HDL": ActiveHDL, 

20 "ModelSim": ModelSim, 

21 } 

22 

23 @property 

24 def Diamond(self) -> Diamond: 

25 return self.__getitem__("Diamond") 

26 

27 @property 

28 def ActiveHDL(self) -> ActiveHDL: 

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

30 

31 @property 

32 def ModelSim(self) -> ModelSim: 

33 return self.__getitem__("ModelSim")