ToolSetup.OpenSource

ToolSetup/OpenSource/__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
from typing import Dict

from pyTooling.Decorators import export

from .. import Vendor, Tool
from ..OpenSource.GHDL import GHDL
from ..OpenSource.GTKWave import GTKWave


@export
class OpenSource(Vendor):
	_vendorName = "Open Source"
	_vendorKey = "OpenSource"
	_toolClasses: Dict[str, Tool] = {
		"GHDL": GHDL,
		"GTKWave": GTKWave,
	}

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

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