pyEDAA.ProjectModel

An abstract model of EDA tool projects.

Submodules

Classes


Classes

class pyEDAA.ProjectModel.Attribute[source]

Inheritance

Inheritance diagram of Attribute

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
class pyEDAA.ProjectModel.FileType(name, bases, dictionary, **kwargs)[source]

A meta-class to construct FileType classes.

Modifications done by this meta-class: * Register all classes of type FileType or derived variants in a class field FileType.FileTypes in this meta-class.

Inheritance

Inheritance diagram of FileType

Parameters:

classMembers (Dict)

Return type:

Self

FileTypes: Dict[str, FileType] = {'CSourceFile': <class 'pyEDAA.ProjectModel.CSourceFile'>, 'CocotbPythonFile': <class 'pyEDAA.ProjectModel.CocotbPythonFile'>, 'ConstraintFile': <class 'pyEDAA.ProjectModel.Xilinx.Vivado.ConstraintFile'>, 'CppSourceFile': <class 'pyEDAA.ProjectModel.CppSourceFile'>, 'EDIFNetlistFile': <class 'pyEDAA.ProjectModel.EDIFNetlistFile'>, 'File': <class 'pyEDAA.ProjectModel.Xilinx.Vivado.File'>, 'GHDLWaveformFile': <class 'pyEDAA.ProjectModel.GHDL.GHDLWaveformFile'>, 'HDLSourceFile': <class 'pyEDAA.ProjectModel.HDLSourceFile'>, 'IPCoreDescriptionFile': <class 'pyEDAA.ProjectModel.Xilinx.Vivado.IPCoreDescriptionFile'>, 'IPCoreInstantiationFile': <class 'pyEDAA.ProjectModel.Xilinx.Vivado.IPCoreInstantiationFile'>, 'ISEProjectFile': <class 'pyEDAA.ProjectModel.Xilinx.ISE.ISEProjectFile'>, 'LogFile': <class 'pyEDAA.ProjectModel.LogFile'>, 'ModelSimINIFile': <class 'pyEDAA.ProjectModel.MentorGraphics.QuestaSim.ModelSimINIFile'>, 'ModelSimProjectFile': <class 'pyEDAA.ProjectModel.MentorGraphics.QuestaSim.ModelSimProjectFile'>, 'NetlistFile': <class 'pyEDAA.ProjectModel.NetlistFile'>, 'OSVVMProjectFile': <class 'pyEDAA.ProjectModel.OSVVM.OSVVMProjectFile'>, 'ProjectFile': <class 'pyEDAA.ProjectModel.ProjectFile'>, 'PythonSourceFile': <class 'pyEDAA.ProjectModel.PythonSourceFile'>, 'QuartusProjectFile': <class 'pyEDAA.ProjectModel.Intel.QuartusPrime.QuartusProjectFile'>, 'RDLSourceFile': <class 'pyEDAA.ProjectModel.RDLSourceFile'>, 'SDCConstraintFile': <class 'pyEDAA.ProjectModel.Intel.QuartusPrime.SDCConstraintFile'>, 'SettingFile': <class 'pyEDAA.ProjectModel.SettingFile'>, 'SimulationAnalysisFile': <class 'pyEDAA.ProjectModel.SimulationAnalysisFile'>, 'SimulationElaborationFile': <class 'pyEDAA.ProjectModel.SimulationElaborationFile'>, 'SimulationRunFile': <class 'pyEDAA.ProjectModel.SimulationRunFile'>, 'SimulationStartFile': <class 'pyEDAA.ProjectModel.SimulationStartFile'>, 'SourceFile': <class 'pyEDAA.ProjectModel.SourceFile'>, 'SystemRDLSourceFile': <class 'pyEDAA.ProjectModel.SystemRDLSourceFile'>, 'SystemVerilogBaseFile': <class 'pyEDAA.ProjectModel.SystemVerilogBaseFile'>, 'SystemVerilogHeaderFile': <class 'pyEDAA.ProjectModel.SystemVerilogHeaderFile'>, 'SystemVerilogSourceFile': <class 'pyEDAA.ProjectModel.SystemVerilogSourceFile'>, 'TCLSourceFile': <class 'pyEDAA.ProjectModel.TCLSourceFile'>, 'TextFile': <class 'pyEDAA.ProjectModel.TextFile'>, 'UCFConstraintFile': <class 'pyEDAA.ProjectModel.Xilinx.ISE.UCFConstraintFile'>, 'VHDLSourceFile': <class 'pyEDAA.ProjectModel.Xilinx.Vivado.VHDLSourceFile'>, 'ValueChangeDumpFile': <class 'pyEDAA.ProjectModel.Verilog.ValueChangeDumpFile'>, 'VerilogBaseFile': <class 'pyEDAA.ProjectModel.VerilogBaseFile'>, 'VerilogHeaderFile': <class 'pyEDAA.ProjectModel.VerilogHeaderFile'>, 'VerilogSourceFile': <class 'pyEDAA.ProjectModel.Xilinx.Vivado.VerilogSourceFile'>, 'VivadoProjectFile': <class 'pyEDAA.ProjectModel.Xilinx.Vivado.VivadoProjectFile'>, 'WaveDoFile': <class 'pyEDAA.ProjectModel.MentorGraphics.QuestaSim.WaveDoFile'>, 'WaveformConfigFile': <class 'pyEDAA.ProjectModel.WaveformConfigFile'>, 'WaveformDatabaseFile': <class 'pyEDAA.ProjectModel.WaveformDatabaseFile'>, 'WaveformExchangeFile': <class 'pyEDAA.ProjectModel.WaveformExchangeFile'>, 'XDCConstraintFile': <class 'pyEDAA.ProjectModel.Xilinx.Vivado.XDCConstraintFile'>, 'XMLFile': <class 'pyEDAA.ProjectModel.XMLFile'>}

Dictionary of all classes of type FileType or derived variants

__init__(name, bases, dictionary, **kwargs)[source]
Parameters:
Return type:

None

static __new__(cls, className, baseClasses, classMembers, *args, **kwargs)[source]

Construct a new class using this meta-class.

Parameters:
  • className – The name of the class to construct.

  • baseClasses – The tuple of base-classes the class is derived from.

  • members – The dictionary of members for the constructed class.

  • slots – If true, store object attributes in __slots__ instead of __dict__.

  • mixin – If true, make the class a Mixin-Class. If false, create slots if slots is true. If none, preserve behavior of primary base-class.

  • singleton – If true, make the class a Singleton.

  • classMembers (Dict)

Return type:

Self

Returns:

The new class.

Raises:
property HasClassAttributes: bool

Read-only property to check if the class has Attributes (__pyattr__).

Returns:

True, if the class has Attributes.

property HasMethodAttributes: bool

Read-only property to check if the class has methods with Attributes (__methodsWithAttributes__).

Returns:

True, if the class has any method with Attributes.

__base__

alias of ExtendedType

__call__(*args, **kwargs)

Call self as a function.

__delattr__(name, /)

Implement delattr(self, name).

__dir__()

Specialized __dir__ implementation for types.

__getattribute__(name, /)

Return getattr(self, name).

__instancecheck__(instance, /)

Check if an object is an instance.

__or__(value, /)

Return self|value.

classmethod __prepare__(name, bases, /, **kwds)

Create the namespace for the class statement

__repr__()

Return repr(self).

__ror__(value, /)

Return value|self.

__setattr__(name, value, /)

Implement setattr(self, name, value).

__sizeof__()

Return memory consumption of the type object.

__subclasscheck__(subclass, /)

Check if a class is a subclass.

__subclasses__()

Return a list of immediate subclasses.

classmethod _aggregateMixinSlots(className, baseClasses)

Aggregate slot names requested by mixin-base-classes.

Todo

Describe algorithm.

Parameters:
  • className (str) – The name of the class to construct.

  • baseClasses (Tuple[type]) – The tuple of base-classes the class is derived from.

Return type:

List[str]

Returns:

A list of slot names.

classmethod _checkForAbstractMethods(baseClasses, members)

Check if the current class contains abstract methods and return a tuple of them.

These abstract methods might be inherited from any base-class. If there are inherited abstract methods, check if they are now implemented (overridden) by the current class that’s right now constructed.

Parameters:
  • baseClasses (Tuple[type]) – The tuple of base-classes the class is derived from.

  • members (Dict[str, Any]) – The dictionary of members for the constructed class.

Return type:

Tuple[Dict[str, Callable], Dict[str, Any]]

Returns:

A tuple of abstract method’s names.

classmethod _computeSlots(className, baseClasses, members, slots, mixin)

Compute which field are listed in __slots__ and which need to be initialized in an instance or class.

Todo

Describe algorithm.

Parameters:
  • className (str) – The name of the class to construct.

  • baseClasses (Tuple[type]) – Tuple of base-classes.

  • members (Dict[str, Any]) – Dictionary of class members.

  • slots (bool) – True, if the class should setup __slots__.

  • mixin (bool) – True, if the class should behave as a mixin-class.

Return type:

Tuple[Dict[str, Any], Dict[str, Any]]

Returns:

A 2-tuple with a dictionary of class members and object members.

classmethod _findMethods(newClass, baseClasses, members)

Find methods and methods with pyTooling.Attributes.

Todo

Describe algorithm.

Parameters:
Return type:

Tuple[List[MethodType], List[MethodType]]

Returns:

classmethod _iterateBaseClassPaths(baseClasses)

Return a generator to iterate all possible inheritance paths for a given list of base-classes.

An inheritance path is expressed as a tuple of base-classes from current base-class (left-most item) to object (right-most item).

Parameters:

baseClasses (Tuple[type]) – The tuple of base-classes the class is derived from.

Return type:

Generator[Tuple[type, ...], None, None]

Returns:

Generator to iterate all inheritance paths.
An inheritance path is a tuple of types (base-classes).

classmethod _iterateBaseClasses(baseClasses)

Return a generator to iterate (visit) all base-classes …

Todo

Describe iteration order.

Parameters:

baseClasses (Tuple[type]) – The tuple of base-classes the class is derived from.

Return type:

Generator[type, None, None]

Returns:

Generator to iterate all base-classes.

classmethod _wrapNewMethodIfAbstract(newClass)

If the class has abstract methods, replace the _new__ method, so it raises an exception.

Parameters:

newClass – The newly constructed class for further modifications.

Return type:

bool

Returns:

True, if the class is abstract.

Raises:

AbstractClassError – If the class is abstract and can’t be instantiated.

classmethod _wrapNewMethodIfSingleton(newClass, singleton)

If a class is a singleton, wrap the _new__ method, so it returns a cached object, if a first object was created.

Only the first object creation initializes the object.

This implementation is threadsafe.

Parameters:
  • newClass – The newly constructed class for further modifications.

  • singleton (bool) – If True, the class allows only a single instance to exist.

Return type:

bool

Returns:

True, if the class is a singleton.

mro()

Return a type’s method resolution order.

class pyEDAA.ProjectModel.File(path, project=None, design=None, fileSet=None)[source]

A File represents a file in a design. This base-class is used for all derived file classes.

A file can be created standalone and later associated to a fileset, design and project. Or a fileset, design and/or project can be associated immediately while creating a file.

Parameters:
  • path (Path) – Relative or absolute path to the file.

  • project (Project | None) – Project the file is associated with.

  • design (Design | None) – Design the file is associated with.

  • fileSet (FileSet | None) – Fileset the file is associated with.

  • path

  • project

  • design

  • fileSet

Inheritance

Inheritance diagram of File

__init__(path, project=None, design=None, fileSet=None)[source]
Parameters:
Return type:

None

property FileType: FileType

Read-only property to return the file type of this file.

property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

property Project: Project | None

Property setting or returning the project this file is used in.

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

Validate()[source]

Validate this file.

Return type:

None

__len__()[source]

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__getitem__(key)[source]

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__setitem__(key, value)[source]

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__delitem__(key)[source]

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__str__()[source]

Return str(self).

Return type:

str

Any

alias of File

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

class pyEDAA.ProjectModel.HumanReadableContent[source]

A file type representing human-readable contents.

Inheritance

Inheritance diagram of HumanReadableContent

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
class pyEDAA.ProjectModel.XMLContent[source]

A file type representing XML contents.

Inheritance

Inheritance diagram of XMLContent

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

class pyEDAA.ProjectModel.YAMLContent[source]

A file type representing YAML contents.

Inheritance

Inheritance diagram of YAMLContent

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

class pyEDAA.ProjectModel.JSONContent[source]

A file type representing JSON contents.

Inheritance

Inheritance diagram of JSONContent

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

class pyEDAA.ProjectModel.INIContent[source]

A file type representing INI contents.

Inheritance

Inheritance diagram of INIContent

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

class pyEDAA.ProjectModel.TOMLContent[source]

A file type representing TOML contents.

Inheritance

Inheritance diagram of TOMLContent

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

class pyEDAA.ProjectModel.TCLContent[source]

A file type representing content in TCL code.

Inheritance

Inheritance diagram of TCLContent

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

class pyEDAA.ProjectModel.SDCContent[source]

A file type representing contents as Synopsys Design Constraints (SDC).

Inheritance

Inheritance diagram of SDCContent

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

class pyEDAA.ProjectModel.PythonContent[source]

A file type representing contents as Python source code.

Inheritance

Inheritance diagram of PythonContent

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

class pyEDAA.ProjectModel.TextFile(path, project=None, design=None, fileSet=None)[source]

A text file (*.txt).

Inheritance

Inheritance diagram of TextFile

Parameters:
Any

alias of TextFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, project=None, design=None, fileSet=None)
Parameters:
Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.LogFile(path, project=None, design=None, fileSet=None)[source]

A log file (*.log).

Inheritance

Inheritance diagram of LogFile

Parameters:
Any

alias of LogFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, project=None, design=None, fileSet=None)
Parameters:
Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.XMLFile(path, project=None, design=None, fileSet=None)[source]

An XML file (*.xml).

Inheritance

Inheritance diagram of XMLFile

Parameters:
Any

alias of XMLFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, project=None, design=None, fileSet=None)
Parameters:
Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.SourceFile(path, project=None, design=None, fileSet=None)[source]

Base-class of all source files.

Inheritance

Inheritance diagram of SourceFile

Parameters:
Any

alias of SourceFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, project=None, design=None, fileSet=None)
Parameters:
Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.HDLSourceFile(path, project=None, design=None, fileSet=None)[source]

Base-class of all HDL source files.

Inheritance

Inheritance diagram of HDLSourceFile

Parameters:
Any

alias of HDLSourceFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, project=None, design=None, fileSet=None)
Parameters:
Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.RDLSourceFile(path, project=None, design=None, fileSet=None)[source]

Base-class of all RDL source files.

Inheritance

Inheritance diagram of RDLSourceFile

Parameters:
Any

alias of RDLSourceFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, project=None, design=None, fileSet=None)
Parameters:
Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.NetlistFile(path, project=None, design=None, fileSet=None)[source]

Base-class of all netlist source files.

Inheritance

Inheritance diagram of NetlistFile

Parameters:
Any

alias of NetlistFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, project=None, design=None, fileSet=None)
Parameters:
Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.EDIFNetlistFile(path, project=None, design=None, fileSet=None)[source]

Netlist file in EDIF (Electronic Design Interchange Format).

Inheritance

Inheritance diagram of EDIFNetlistFile

Parameters:
Any

alias of EDIFNetlistFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, project=None, design=None, fileSet=None)
Parameters:
Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.TCLSourceFile(path, project=None, design=None, fileSet=None)[source]

A TCL source file.

Inheritance

Inheritance diagram of TCLSourceFile

Parameters:
Any

alias of TCLSourceFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, project=None, design=None, fileSet=None)
Parameters:
Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.VHDLSourceFile(path, vhdlLibrary=None, vhdlVersion=None, project=None, design=None, fileSet=None)[source]

A VHDL source file (of any language version).

Parameters:
  • path (Path) – Relative or absolute path to the file.

  • vhdlLibrary (str | VHDLLibrary) – VHDLLibrary this VHDL source file is associated wih.

  • vhdlVersion (<property object at 0x7a8dcbe94540> | None) – VHDLVersion this VHDL source file is associated wih.

  • project (Project | None) – Project the file is associated with.

  • design (Design | None) – Design the file is associated with.

  • fileSet (FileSet | None) – Fileset the file is associated with.

  • path

  • vhdlLibrary

  • vhdlVersion

  • project

  • design

  • fileSet

Inheritance

Inheritance diagram of VHDLSourceFile

__init__(path, vhdlLibrary=None, vhdlVersion=None, project=None, design=None, fileSet=None)[source]
Parameters:
Return type:

None

Validate()[source]

Validate this VHDL source file.

Return type:

None

property VHDLLibrary: VHDLLibrary

Property setting or returning the VHDL library this VHDL source file is used in.

property VHDLVersion: <property object at 0x7a8dcbe94540>

Property setting or returning the VHDL version this VHDL source file is used in.

__repr__()[source]

Return repr(self).

Return type:

str

Any

alias of VHDLSourceFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.VerilogBaseFile(path, version=None, project=None, design=None, fileSet=None)[source]

Inheritance

Inheritance diagram of VerilogBaseFile

Parameters:
  • path (Path)

  • version (SystemVerilogVersion | None)

  • project (Project | None)

  • design (Design | None)

  • fileSet (FileSet | None)

__init__(path, version=None, project=None, design=None, fileSet=None)[source]
Parameters:
  • path (Path)

  • version (SystemVerilogVersion | None)

  • project (Project | None)

  • design (Design | None)

  • fileSet (FileSet | None)

Return type:

None

Any

alias of VerilogBaseFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.VerilogSourceFile(path, version=None, project=None, design=None, fileSet=None)[source]

A Verilog source file (of any language version).

Inheritance

Inheritance diagram of VerilogSourceFile

Parameters:
  • path (Path)

  • version (SystemVerilogVersion | None)

  • project (Project | None)

  • design (Design | None)

  • fileSet (FileSet | None)

Any

alias of VerilogSourceFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

property VerilogVersion: SystemVerilogVersion

Property setting or returning the Verilog version this Verilog source file is used in.

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, version=None, project=None, design=None, fileSet=None)
Parameters:
  • path (Path)

  • version (SystemVerilogVersion | None)

  • project (Project | None)

  • design (Design | None)

  • fileSet (FileSet | None)

Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.VerilogHeaderFile(path, version=None, project=None, design=None, fileSet=None)[source]

A Verilog header file (of any language version).

Inheritance

Inheritance diagram of VerilogHeaderFile

Parameters:
  • path (Path)

  • version (SystemVerilogVersion | None)

  • project (Project | None)

  • design (Design | None)

  • fileSet (FileSet | None)

Any

alias of VerilogHeaderFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

property VerilogVersion: SystemVerilogVersion

Property setting or returning the Verilog version this Verilog source file is used in.

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, version=None, project=None, design=None, fileSet=None)
Parameters:
  • path (Path)

  • version (SystemVerilogVersion | None)

  • project (Project | None)

  • design (Design | None)

  • fileSet (FileSet | None)

Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.SystemVerilogBaseFile(path, version=None, project=None, design=None, fileSet=None)[source]

Inheritance

Inheritance diagram of SystemVerilogBaseFile

Parameters:
  • path (Path)

  • version (SystemVerilogVersion | None)

  • project (Project | None)

  • design (Design | None)

  • fileSet (FileSet | None)

Any

alias of SystemVerilogBaseFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, version=None, project=None, design=None, fileSet=None)
Parameters:
  • path (Path)

  • version (SystemVerilogVersion | None)

  • project (Project | None)

  • design (Design | None)

  • fileSet (FileSet | None)

Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.SystemVerilogSourceFile(path, version=None, project=None, design=None, fileSet=None)[source]

A SystemVerilog source file (of any language version).

Inheritance

Inheritance diagram of SystemVerilogSourceFile

Parameters:
  • path (Path)

  • version (SystemVerilogVersion | None)

  • project (Project | None)

  • design (Design | None)

  • fileSet (FileSet | None)

Any

alias of SystemVerilogSourceFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

property SVVersion: SystemVerilogVersion

Property setting or returning the SystemVerilog version this SystemVerilog source file is used in.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, version=None, project=None, design=None, fileSet=None)
Parameters:
  • path (Path)

  • version (SystemVerilogVersion | None)

  • project (Project | None)

  • design (Design | None)

  • fileSet (FileSet | None)

Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.SystemVerilogHeaderFile(path, version=None, project=None, design=None, fileSet=None)[source]

A SystemVerilog header file (of any language version).

Inheritance

Inheritance diagram of SystemVerilogHeaderFile

Parameters:
  • path (Path)

  • version (SystemVerilogVersion | None)

  • project (Project | None)

  • design (Design | None)

  • fileSet (FileSet | None)

Any

alias of SystemVerilogHeaderFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

property SVVersion: SystemVerilogVersion

Property setting or returning the SystemVerilog version this SystemVerilog source file is used in.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, version=None, project=None, design=None, fileSet=None)
Parameters:
  • path (Path)

  • version (SystemVerilogVersion | None)

  • project (Project | None)

  • design (Design | None)

  • fileSet (FileSet | None)

Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.SystemRDLSourceFile(path, srdlVersion=None, project=None, design=None, fileSet=None)[source]

A SystemRDL source file (of any language version).

Inheritance

Inheritance diagram of SystemRDLSourceFile

Parameters:
  • path (Path)

  • srdlVersion (<property object at 0x7a8dcbe94ae0> | None)

  • project (Project | None)

  • design (Design | None)

  • fileSet (FileSet | None)

__init__(path, srdlVersion=None, project=None, design=None, fileSet=None)[source]
Parameters:
  • path (Path)

  • srdlVersion (<property object at 0x7a8dcbe94ae0> | None)

  • project (Project | None)

  • design (Design | None)

  • fileSet (FileSet | None)

Return type:

None

property SystemRDLVersion: <property object at 0x7a8dcbe94ae0>

Property setting or returning the SystemRDL version this SystemRDL source file is used in.

Any

alias of SystemRDLSourceFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.PythonSourceFile(path, project=None, design=None, fileSet=None)[source]

A Python source file.

Inheritance

Inheritance diagram of PythonSourceFile

Parameters:
Any

alias of PythonSourceFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, project=None, design=None, fileSet=None)
Parameters:
Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.CocotbPythonFile(path, project=None, design=None, fileSet=None)[source]

A Python source file used by Cocotb.

Inheritance

Inheritance diagram of CocotbPythonFile

Parameters:
Any

alias of CocotbPythonFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, project=None, design=None, fileSet=None)
Parameters:
Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.ConstraintFile(path, project=None, design=None, fileSet=None)[source]

Base-class of all constraint files.

Inheritance

Inheritance diagram of ConstraintFile

Parameters:
Any

alias of ConstraintFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, project=None, design=None, fileSet=None)
Parameters:
Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.ProjectFile(path, project=None, design=None, fileSet=None)[source]

Base-class of all tool-specific project files.

Inheritance

Inheritance diagram of ProjectFile

Parameters:
Any

alias of ProjectFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, project=None, design=None, fileSet=None)
Parameters:
Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.CSourceFile(path, project=None, design=None, fileSet=None)[source]

Base-class of all ANSI-C source files.

Inheritance

Inheritance diagram of CSourceFile

Parameters:
Any

alias of CSourceFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, project=None, design=None, fileSet=None)
Parameters:
Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.CppSourceFile(path, project=None, design=None, fileSet=None)[source]

Base-class of all ANSI-C++ source files.

Inheritance

Inheritance diagram of CppSourceFile

Parameters:
Any

alias of CppSourceFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, project=None, design=None, fileSet=None)
Parameters:
Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.SettingFile(path, project=None, design=None, fileSet=None)[source]

Base-class of all tool-specific setting files.

Inheritance

Inheritance diagram of SettingFile

Parameters:
Any

alias of SettingFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, project=None, design=None, fileSet=None)
Parameters:
Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.SimulationAnalysisFile(path, project=None, design=None, fileSet=None)[source]

Base-class of all tool-specific analysis files.

Inheritance

Inheritance diagram of SimulationAnalysisFile

Parameters:
Any

alias of SimulationAnalysisFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, project=None, design=None, fileSet=None)
Parameters:
Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.SimulationElaborationFile(path, project=None, design=None, fileSet=None)[source]

Base-class of all tool-specific elaboration files.

Inheritance

Inheritance diagram of SimulationElaborationFile

Parameters:
Any

alias of SimulationElaborationFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, project=None, design=None, fileSet=None)
Parameters:
Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.SimulationStartFile(path, project=None, design=None, fileSet=None)[source]

Base-class of all tool-specific simulation start-up files.

Inheritance

Inheritance diagram of SimulationStartFile

Parameters:
Any

alias of SimulationStartFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, project=None, design=None, fileSet=None)
Parameters:
Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.SimulationRunFile(path, project=None, design=None, fileSet=None)[source]

Base-class of all tool-specific simulation run (execution) files.

Inheritance

Inheritance diagram of SimulationRunFile

Parameters:
Any

alias of SimulationRunFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, project=None, design=None, fileSet=None)
Parameters:
Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.WaveformConfigFile(path, project=None, design=None, fileSet=None)[source]

Base-class of all tool-specific waveform configuration files.

Inheritance

Inheritance diagram of WaveformConfigFile

Parameters:
Any

alias of WaveformConfigFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, project=None, design=None, fileSet=None)
Parameters:
Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.WaveformDatabaseFile(path, project=None, design=None, fileSet=None)[source]

Base-class of all tool-specific waveform database files.

Inheritance

Inheritance diagram of WaveformDatabaseFile

Parameters:
Any

alias of WaveformDatabaseFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, project=None, design=None, fileSet=None)
Parameters:
Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.WaveformExchangeFile(path, project=None, design=None, fileSet=None)[source]

Base-class of all tool-independent waveform exchange files.

Inheritance

Inheritance diagram of WaveformExchangeFile

Parameters:
Any

alias of WaveformExchangeFile

property Design: Design | None

Property setting or returning the design this file is used in.

property FileSet: FileSet | None

Property setting or returning the fileset this file is used in.

property FileType: FileType

Read-only property to return the file type of this file.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
property Path: Path

Read-only property to access the path to the file.

Returns:

The file’s path.

property Project: Project | None

Property setting or returning the project this file is used in.

property ResolvedPath: Path

Read-only property returning the resolved path of this file.

Validate()

Validate this file.

Return type:

None

__delitem__(key)

Index access for deleting attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__getitem__(key)

Index access for returning attributes on this file.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(path, project=None, design=None, fileSet=None)
Parameters:
Return type:

None

__len__()

Returns number of attributes set on this file.

Return type:

int

Returns:

The number of attributes set on this file.

__setitem__(key, value)

Index access for adding or setting attributes on this file.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__str__()

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.FileSet(name, topLevel=None, directory=PosixPath('.'), project=None, design=None, parent=None, vhdlLibrary=None, vhdlVersion=None, verilogVersion=None, svVersion=None, srdlVersion=None)[source]

A FileSet represents a group of files. Filesets can have sub-filesets.

The order of insertion is preserved. A fileset can be created standalone and later associated to another fileset, design and/or project. Or a fileset, design and/or project can be associated immediately while creating the fileset.

Parameters:
  • name (str) – Name of this fileset.

  • topLevel (str | None) – Name of the fileset’s toplevel.

  • directory (Path) – Path of this fileset (absolute or relative to a parent fileset or design).

  • project (Project | None) – Project the file is associated with.

  • design (Design | None) – Design the file is associated with.

  • parent (FileSet | None) – Parent fileset if this fileset is nested.

  • vhdlLibrary (str | VHDLLibrary) – Default VHDL library for files in this fileset, if not specified for the file itself.

  • vhdlVersion (<property object at 0x7a8dcbe95fd0> | None) – Default VHDL version for files in this fileset, if not specified for the file itself.

  • verilogVersion (SystemVerilogVersion | None) – Default Verilog version for files in this fileset, if not specified for the file itself.

  • svVersion (SystemVerilogVersion | None) – Default SystemVerilog version for files in this fileset, if not specified for the file itself.

  • srdlVersion (SystemRDLVersion | None) – Default SystemRDL version for files in this fileset, if not specified for the file itself.

  • name

  • topLevel

  • directory

  • project

  • design

  • parent

  • vhdlLibrary

  • vhdlVersion

  • verilogVersion

  • svVersion

  • srdlVersion

Inheritance

Inheritance diagram of FileSet

__init__(name, topLevel=None, directory=PosixPath('.'), project=None, design=None, parent=None, vhdlLibrary=None, vhdlVersion=None, verilogVersion=None, svVersion=None, srdlVersion=None)[source]
Parameters:
  • name (str)

  • topLevel (str | None)

  • directory (Path)

  • project (Project | None)

  • design (Design | None)

  • parent (FileSet | None)

  • vhdlLibrary (str | VHDLLibrary)

  • vhdlVersion (<property object at 0x7a8dcbe95fd0> | None)

  • verilogVersion (SystemVerilogVersion | None)

  • svVersion (SystemVerilogVersion | None)

  • srdlVersion (SystemRDLVersion | None)

Return type:

None

property Name: str

Property setting or returning the fileset’s name.

property TopLevel: str

Property setting or returning the fileset’s toplevel.

property Project: Project | None

Property setting or returning the project this fileset is used in.

property Design: Design | None

Property setting or returning the design this fileset is used in.

property Directory: Path

Property setting or returning the directory this fileset is located in.

property ResolvedPath: Path

Read-only property returning the resolved path of this fileset.

property Parent: FileSet | None

Property setting or returning the parent fileset this fileset is used in.

property FileSets: Dict[str, FileSet]

Read-only property returning the dictionary of sub-filesets.

Files(fileType=<class 'pyEDAA.ProjectModel.File'>, fileSet=None)[source]

Method returning the files of this fileset.

Parameters:
  • fileType (FileType) – A filter for file types. Default: Any.

  • fileSet (bool | str | FileSet) – Specifies how to handle sub-filesets.

  • fileType

  • fileSet

Return type:

Generator[File, None, None]

AddFileSet(fileSet)[source]

Method to add a single sub-fileset to this fileset.

Parameters:
  • fileSet (FileSet) – A fileset to add to this fileset as sub-fileset.

  • fileSet

Return type:

None

AddFileSets(fileSets)[source]

Method to add a multiple sub-filesets to this fileset.

Parameters:
  • fileSets (Iterable[FileSet]) – An iterable of filesets to add each to the fileset.

  • fileSets

Return type:

None

property FileSetCount: int

Returns number of file sets excl. sub-filesets.

property TotalFileSetCount: int

Returns number of file sets incl. sub-filesets.

AddFile(file)[source]

Method to add a single file to this fileset.

Parameters:
  • file (File) – A file to add to this fileset.

  • file

Return type:

None

AddFiles(files)[source]

Method to add a multiple files to this fileset.

Parameters:
  • files (Iterable[File]) – An iterable of files to add each to the fileset.

  • files

Return type:

None

property FileCount: int

Returns number of files excl. sub-filesets.

property TotalFileCount: int

Returns number of files incl. the files in sub-filesets.

Validate()[source]

Validate this fileset.

Return type:

None

property VHDLLibrary: VHDLLibrary

Property setting or returning the VHDL library of this fileset.

property VHDLVersion: <property object at 0x7a8dcbe95fd0>

Property setting or returning the VHDL version of this fileset.

property VerilogVersion: SystemVerilogVersion

Property setting or returning the Verilog version of this fileset.

property SVVersion: SystemVerilogVersion

Property setting or returning the SystemVerilog version of this fileset.

__len__()[source]

Returns number of attributes set on this fileset.

Return type:

int

Returns:

The number of attributes set on this fileset.

__getitem__(key)[source]

Index access for returning attributes on this fileset.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__setitem__(key, value)[source]

Index access for adding or setting attributes on this fileset.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__delitem__(key)[source]

Index access for deleting attributes on this fileset.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__str__()[source]

Returns the fileset’s name.

Return type:

str

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

class pyEDAA.ProjectModel.VHDLLibrary(name, project=None, design=None, vhdlVersion=None)[source]

A VHDLLibrary represents a group of VHDL source files compiled into the same VHDL library.

Parameters:
  • name (str) – The VHDL libraries’ name.

  • project (Project | None) – Project the VHDL library is associated with.

  • design (Design | None) – Design the VHDL library is associated with.

  • vhdlVersion (<property object at 0x7a8dcbe96930> | None) – Default VHDL version for files in this VHDL library, if not specified for the file itself.

  • name

  • project

  • design

  • vhdlVersion

Inheritance

Inheritance diagram of VHDLLibrary

__init__(name, project=None, design=None, vhdlVersion=None)[source]
Parameters:
  • name (str)

  • project (Project | None)

  • design (Design | None)

  • vhdlVersion (<property object at 0x7a8dcbe96930> | None)

Return type:

None

property Project: Project | None

Property setting or returning the project this VHDL library is used in.

property Design: Design | None

Property setting or returning the design this VHDL library is used in.

property Files: Generator[File, None, None]

Read-only property to return all files in this VHDL library.

property VHDLVersion: <property object at 0x7a8dcbe96930>

Property setting or returning the VHDL version of this VHDL library.

property FileCount: int

Returns number of files.

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__len__()[source]

Returns number of attributes set on this VHDL library.

Return type:

int

Returns:

The number of attributes set on this VHDL library.

__getitem__(key)[source]

Index access for returning attributes on this VHDL library.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__setitem__(key, value)[source]

Index access for adding or setting attributes on this VHDL library.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__delitem__(key)[source]

Index access for deleting attributes on this VHDL library.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__str__()[source]

Returns the VHDL library’s name.

Return type:

str

class pyEDAA.ProjectModel.Design(name, topLevel=None, directory=PosixPath('.'), project=None, vhdlVersion=None, verilogVersion=None, svVersion=None, srdlVersion=None)[source]

A Design represents a group of filesets and the source files therein.

Each design contains at least one fileset - the default fileset. For designs with VHDL source files, a independent VHDLLibraries overlay structure exists.

Parameters:
  • name (str) – The design’s name.

  • topLevel (str | None) – Name of the design’s toplevel.

  • directory (Path) – Path of this design (absolute or relative to the project).

  • project (Project | None) – Project the design is associated with.

  • vhdlVersion (<property object at 0x7a8dcbe97560> | None) – Default VHDL version for files in this design, if not specified for the file itself.

  • verilogVersion (SystemVerilogVersion | None) – Default Verilog version for files in this design, if not specified for the file itself.

  • svVersion (SystemVerilogVersion | None) – Default SystemVerilog version for files in this design, if not specified for the file itself.

  • srdlVersion (SystemRDLVersion | None) – Default SystemRDL version for files in this fileset, if not specified for the file itself.

  • name

  • topLevel

  • directory

  • project

  • vhdlVersion

  • verilogVersion

  • svVersion

  • srdlVersion

Inheritance

Inheritance diagram of Design

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(name, topLevel=None, directory=PosixPath('.'), project=None, vhdlVersion=None, verilogVersion=None, svVersion=None, srdlVersion=None)[source]
Parameters:
  • name (str)

  • topLevel (str | None)

  • directory (Path)

  • project (Project | None)

  • vhdlVersion (<property object at 0x7a8dcbe97560> | None)

  • verilogVersion (SystemVerilogVersion | None)

  • svVersion (SystemVerilogVersion | None)

  • srdlVersion (SystemRDLVersion | None)

Return type:

None

property Name: str

Property setting or returning the design’s name.

property TopLevel: str

Property setting or returning the fileset’s toplevel.

property Project: Project | None

Property setting or returning the project this design is used in.

property Directory: Path

Property setting or returning the directory this design is located in.

property ResolvedPath: Path

Read-only property returning the resolved path of this fileset.

property DefaultFileSet: FileSet

Property setting or returning the default fileset of this design.

property FileSets: Dict[str, FileSet]

Read-only property returning the dictionary of filesets.

Files(fileType=<class 'pyEDAA.ProjectModel.File'>, fileSet=None)[source]

Method returning the files of this design.

Parameters:
  • fileType (FileType) – A filter for file types. Default: Any.

  • fileSet (str | FileSet) – Specifies if all files from all filesets (fileSet=None) are files from a single fileset are returned.

  • fileType

  • fileSet

Return type:

Generator[File, None, None]

Validate()[source]

Validate this design.

Return type:

None

property FileSetCount: int

Returns number of file sets excl. sub-filesets.

property TotalFileSetCount: int

Returns number of file sets incl. sub-filesets.

__len__()[source]

Returns number of attributes set on this design.

Return type:

int

Returns:

The number of attributes set on this design.

__getitem__(key)[source]

Index access for returning attributes on this design.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__setitem__(key, value)[source]

Index access for adding or setting attributes on this design.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__delitem__(key)[source]

Index access for deleting attributes on this design.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__str__()[source]

Return str(self).

Return type:

str

class pyEDAA.ProjectModel.Project(name, rootDirectory=PosixPath('.'), vhdlVersion=None, verilogVersion=None, svVersion=None)[source]

A Project represents a group of designs and the source files therein.

Parameters:
  • name (str) – The project’s name.

  • rootDirectory (Path) – Base-path to the project.

  • vhdlVersion (<property object at 0x7a8dcbec8400> | None) – Default VHDL version for files in this project, if not specified for the file itself.

  • verilogVersion (SystemVerilogVersion | None) – Default Verilog version for files in this project, if not specified for the file itself.

  • svVersion (SystemVerilogVersion | None) – Default SystemVerilog version for files in this project, if not specified for the file itself.

  • name

  • rootDirectory

  • vhdlVersion

  • verilogVersion

  • svVersion

Inheritance

Inheritance diagram of Project

classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
Parameters:

predicate (TypeVar(TAttr) | Iterable[TypeVar(TAttr)] | None)

Return type:

Dict[Callable, Tuple[Attribute, ...]]

Returns:

Raises:
__getstate__() Dict[str, Any]

Helper for pickle.

Return type:

Dict[str, Any]

__init__(name, rootDirectory=PosixPath('.'), vhdlVersion=None, verilogVersion=None, svVersion=None)[source]
Parameters:
  • name (str)

  • rootDirectory (Path)

  • vhdlVersion (<property object at 0x7a8dcbec8400> | None)

  • verilogVersion (SystemVerilogVersion | None)

  • svVersion (SystemVerilogVersion | None)

Return type:

None

property Name: str

Property setting or returning the project’s name.

property RootDirectory: Path

Property setting or returning the root directory this project is located in.

property ResolvedPath: Path

Read-only property returning the resolved path of this fileset.

Validate()[source]

Validate this project.

Return type:

None

property DesignCount: int

Returns number of designs.

__len__()[source]

Returns number of attributes set on this project.

Return type:

int

Returns:

The number of attributes set on this project.

__getitem__(key)[source]

Index access for returning attributes on this project.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

Any

Returns:

The attribute’s value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

__setitem__(key, value)[source]

Index access for adding or setting attributes on this project.

Parameters:
  • key (Type[Attribute]) – The attribute type.

  • value (Any) – The attributes value.

Raises:

TypeError – When parameter ‘key’ is not a subclass of Attribute.

Return type:

None

__delitem__(key)[source]

Index access for deleting attributes on this project.

Parameters:

key (Type[Attribute]) – The attribute type.

Return type:

None

__str__()[source]

Return str(self).

Return type:

str