ToolSetup.Lattice

ToolSetup/Lattice/__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from typing import Dict

from pyTooling.Decorators import export

from ..             import Tool, Vendor
from ..Aldec        import ActiveHDL
from ..SiemensEDA   import ModelSim


@export
class Diamond(Tool):
	pass


@export
class Lattice(Vendor):
	_toolClasses: Dict[str, Tool] = {
		"Diamond": Diamond,
		"Active-HDL": ActiveHDL,
		"ModelSim": ModelSim,
	}

	@property
	def Diamond(self) -> Diamond:
		return self.__getitem__("Diamond")

	@property
	def ActiveHDL(self) -> ActiveHDL:
		return self.__getitem__("Active-HDL")

	@property
	def ModelSim(self) -> ModelSim:
		return self.__getitem__("ModelSim")