Skip to content

Commit 6facdf7

Browse files
committed
Added ScopeToRef and ScopeToCell properties to Vivado's XDC file type.
1 parent e4446a3 commit 6facdf7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

pyEDAA/ProjectModel/Xilinx/Vivado.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,18 @@ class UsedInAttribute(Attribute):
5050
VALUE_TYPE = Iterable[str]
5151

5252

53+
@export
54+
class ScopeToRefAttribute(Attribute):
55+
KEY = "ScopeToRef"
56+
VALUE_TYPE = Nullable[str]
57+
58+
59+
@export
60+
class ScopeToCellAttribute(Attribute):
61+
KEY = "ScopeToCell"
62+
VALUE_TYPE = Nullable[str]
63+
64+
5365
@export
5466
class File(Model_File):
5567
pass
@@ -194,6 +206,11 @@ def _ParseFileSetConfig(self, fileNode, fileset) -> None:
194206
class XDCConstraintFile(ConstraintFile, SDCContent):
195207
"""A Vivado constraint file (Xilinx Design Constraints; ``*.xdc``)."""
196208

209+
def _registerAttributes(self) -> None:
210+
super()._registerAttributes()
211+
self._attributes[ScopeToRefAttribute] = None
212+
self._attributes[ScopeToCellAttribute] = None
213+
197214

198215
@export
199216
class IPCoreDescriptionFile(XMLFile):

0 commit comments

Comments
 (0)