__init__.py

Summary

Lines:

26 of 30 covered (86.7%)

Coverage:

86.7%

Directory:

Xilinx

Missed lines:

69, 73, 77, 81

Source

pyEDAA/ToolSetup/Xilinx/__init__.pycoveredpartialuncoveredexcludednot executable
1# ==================================================================================================================== #
2#              _____ ____    _        _    _____           _ ____       _                                              #
3#  _ __  _   _| ____|  _ \  / \      / \  |_   _|__   ___ | / ___|  ___| |_ _   _ _ __                                 #
4# | '_ \| | | |  _| | | | |/ _ \    / _ \   | |/ _ \ / _ \| \___ \ / _ \ __| | | | '_ \                                #
5# | |_) | |_| | |___| |_| / ___ \  / ___ \ _| | (_) | (_) | |___) |  __/ |_| |_| | |_) |                               #
6# | .__/ \__, |_____|____/_/   \_\/_/   \_(_)_|\___/ \___/|_|____/ \___|\__|\__,_| .__/                                #
7# |_|    |___/                                                                   |_|                                   #
8# ==================================================================================================================== #
9# Authors:                                                                                                             #
10#   Patrick Lehmann                                                                                                    #
11#                                                                                                                      #
12# License:                                                                                                             #
13# ==================================================================================================================== #
14# Copyright 2021-2026 Electronic Design Automation Abstraction (EDA²)                                                  #
15#                                                                                                                      #
16# Licensed under the Apache License, Version 2.0 (the "License");                                                      #
17# you may not use this file except in compliance with the License.                                                     #
18# You may obtain a copy of the License at                                                                              #
19#                                                                                                                      #
20#   http://www.apache.org/licenses/LICENSE-2.0                                                                         #
21#                                                                                                                      #
22# Unless required by applicable law or agreed to in writing, software                                                  #
23# distributed under the License is distributed on an "AS IS" BASIS,                                                    #
24# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.                                             #
25# See the License for the specific language governing permissions and                                                  #
26# limitations under the License.                                                                                       #
27#                                                                                                                      #
28# SPDX-License-Identifier: Apache-2.0                                                                                  #
29# ==================================================================================================================== #
30#
31from typing import Dict
32
33from pyTooling.Decorators import export
34
35from .. import Tool, Vendor
36
37
38@export
39class ISE(Tool):
40	pass
41
42
43@export
44class Vivado(Tool):
45	pass
46
47
48@export
49class VivadoSDK(Tool):
50	pass
51
52
53@export
54class Vitis(Tool):
55	pass
56
57
58@export
59class Xilinx(Vendor):
60	_toolClasses: Dict[str, Tool] = {
61		"ISE": ISE,
62		"Vivado": Vivado,
63		"VivadoSDK": VivadoSDK,
64		"Vitis": Vitis,
65	}
66
67	@property
68	def ISE(self) -> ISE:
69		return self.__getitem__("ISE")
70
71	@property
72	def Vivado(self) -> Vivado:
73		return self.__getitem__("Vivado")
74
75	@property
76	def VivadoSDK(self) -> VivadoSDK:
77		return self.__getitem__("Vivado-SDK")
78
79	@property
80	def Vitis(self) -> Vitis:
81		return self.__getitem__("Vitis")