ToolChain.Xilinx.Vivado¶
Exceptions
VivadoException
: Base class for all tool specific exceptions
Classes
Configuration
: Base class for all tool Configuration classes.ToolMixIn
: Undocumented.Vivado
: Undocumented.XElab
: Represent an executable.XSim
: Represent an executable.Synth
: Represent an executable.VivadoProject
: Undocumented.VivadoProjectFile
: Undocumented.XilinxDesignConstraintFile
: Undocumented.
Functions
ElaborationFilter()
: Undocumented.SimulatorFilter()
: Undocumented.CompilerFilter()
: Undocumented.
-
exception
ToolChain.Xilinx.Vivado.
VivadoException
(message='')[source]¶ Inheritance
Members
-
__str__
()¶ Returns the exception’s message text.
-
args
¶
-
-
class
ToolChain.Xilinx.Vivado.
Configuration
(host: Base.IHost)[source]¶ Inheritance
Members
-
_vendor
= 'Xilinx'¶ The name of the tools vendor.
-
_toolName
= 'Xilinx Vivado'¶ The name of the tool.
-
_section
= 'INSTALL.Xilinx.Vivado'¶ The name of the configuration section. Pattern:
INSTALL.Vendor.ToolName
.
-
_multiVersionSupport
= True¶ Xilinx Vivado supports multiple versions installed on the same system.
-
_template
= {'Windows': {'INSTALL.Xilinx.Vivado': {'Version': '2016.3', 'SectionName': ('%{PathWithRoot}#${Version}', None), 'InstallationDirectory': ('${${SectionName}:InstallationDirectory}', '${INSTALL.Xilinx:InstallationDirectory}/Vivado/${Version}'), 'BinaryDirectory': ('${${SectionName}:BinaryDirectory}', '${InstallationDirectory}/bin')}}, 'Linux': {'INSTALL.Xilinx.Vivado': {'Version': '2016.3', 'SectionName': ('%{PathWithRoot}#${Version}', None), 'InstallationDirectory': ('${${SectionName}:InstallationDirectory}', '${INSTALL.Xilinx:InstallationDirectory}/Vivado/${Version}'), 'BinaryDirectory': ('${${SectionName}:BinaryDirectory}', '${InstallationDirectory}/bin')}}}¶ The template for the configuration sections represented as nested dictionaries.
-
ClearSection
(writeWarnings=False)[source]¶ Clear the configuration section associated to this Configuration class.
-
ConfigureForDarwin
()[source]¶ Start the configuration procedure for Darwin.
This method is a wrapper for
ConfigureForAll()
. Overwrite this method to implement a Darwin specific configuration routine.
-
ConfigureForLinux
()[source]¶ Start the configuration procedure for Linux.
This method is a wrapper for
ConfigureForAll()
. Overwrite this method to implement a Linux specific configuration routine.
-
ConfigureForWindows
()[source]¶ Start the configuration procedure for Windows.
This method is a wrapper for
ConfigureForAll()
. Overwrite this method to implement a Windows specific configuration routine.
-
Host
¶ Return the hosting object.
-
IsSupportedPlatform
()[source]¶ Return true if the given platform is supported by this configuration routine.
-
Log
(entry, condition=True)¶ Write an entry to the local logger.
-
LogDebug
(*args, condition=True, **kwargs)¶
-
LogDryRun
(*args, condition=True, **kwargs)¶
-
LogError
(*args, condition=True, **kwargs)¶
-
LogFatal
(*args, condition=True, **kwargs)¶
-
LogInfo
(*args, condition=True, **kwargs)¶
-
LogNormal
(*args, condition=True, **kwargs)¶
-
LogQuiet
(*args, condition=True, **kwargs)¶
-
LogVerbose
(*args, condition=True, **kwargs)¶
-
LogWarning
(*args, condition=True, **kwargs)¶
-
Logger
¶ Return the local logger instance.
-
PrepareVersionedSections
(writeWarnings=False)¶
-
SectionName
¶ Return the configuration’s section name.
-
State
¶ Return the configuration state.
-
_Ask
(question, default, beforeDefault='', afterDefault='', indent=1)¶
-
_AskYes_NoPass
(question, indent=1)¶ Ask a yes/NO/pass question.
-
_Ask_YesNoPass
(question, indent=1)¶ Ask a YES/no/pass question.
-
_Configuration__CheckVivadoVersion
(binPath, version)¶
-
_ConfigureBinaryDirectory
()¶ Updates section with value from
_template
and returns directory asPath
object.
-
_ConfigureEdition
(editions, defaultEdition)¶
-
_ConfigureInstallationDirectory
()[source]¶ Asks for installation directory and updates section. Checks if entered directory exists and returns Path object. If no installation directory was configured before, then _GetDefaultInstallationDir is called.
-
_ConfigureVersion
()¶ If no version was configured before, then _GetDefaultVersion is called. Asks for version and updates section. Returns version as string.
-
_GetDefaultEdition
()¶ Returns unresolved default edition (str) from template.
Overwrite this method in a sub-class for automatic search of editions.
-
_GetDefaultInstallationDirectory
()[source]¶ Return unresolved default installation directory (str) from template.
Overwrite function in sub-class for automatic search of installation directory.
-
_GetDefaultVersion
()¶ Returns unresolved default version (str) from template.
Overwrite this method in a sub-class for automatic search of version.
-
_PrintAvailableEditions
(editions, selectedEdition)¶ Print all available editions and return the selected index.
-
_TestDefaultInstallPath
(defaults)[source]¶ Helper function for automatic search of installation directory.
-
_TryLog
(*args, condition=True, **kwargs)¶
-
-
class
ToolChain.Xilinx.Vivado.
ToolMixIn
(platform, dryrun, binaryDirectoryPath, version, logger=None)[source]¶ Inheritance
Members
-
class
ToolChain.Xilinx.Vivado.
Vivado
(platform, dryrun, binaryDirectoryPath, version, logger=None)[source]¶ Inheritance
Members
-
class
ToolChain.Xilinx.Vivado.
XElab
(toolchain: ToolChain.ToolMixIn)[source]¶ Inheritance
Members
-
XElab.
Parameters
= [<class 'ToolChain.Xilinx.Vivado.XElab.Executable'>, <class 'ToolChain.Xilinx.Vivado.XElab.FlagRangeCheck'>, <class 'ToolChain.Xilinx.Vivado.XElab.SwitchMultiThreading'>, <class 'ToolChain.Xilinx.Vivado.XElab.SwitchTimeResolution'>, <class 'ToolChain.Xilinx.Vivado.XElab.SwitchVerbose'>, <class 'ToolChain.Xilinx.Vivado.XElab.SwitchDebug'>, <class 'ToolChain.Xilinx.Vivado.XElab.SwitchOptimization'>, <class 'ToolChain.Xilinx.Vivado.XElab.SwitchProjectFile'>, <class 'ToolChain.Xilinx.Vivado.XElab.SwitchLogFile'>, <class 'ToolChain.Xilinx.Vivado.XElab.SwitchSnapshot'>, <class 'ToolChain.Xilinx.Vivado.XElab.ArgTopLevel'>]¶
-
XElab.
GetReader
()¶
-
XElab.
HasErrors
¶ True if errors or fatals errors were found while processing the output stream.
-
XElab.
HasWarnings
¶ True if errors or fatals errors were found while processing the output stream.
-
XElab.
Log
(entry, condition=True)¶ Write an entry to the local logger.
-
XElab.
LogDebug
(*args, condition=True, **kwargs)¶
-
XElab.
LogDryRun
(*args, condition=True, **kwargs)¶
-
XElab.
LogError
(*args, condition=True, **kwargs)¶
-
XElab.
LogFatal
(*args, condition=True, **kwargs)¶
-
XElab.
LogInfo
(*args, condition=True, **kwargs)¶
-
XElab.
LogNormal
(*args, condition=True, **kwargs)¶
-
XElab.
LogQuiet
(*args, condition=True, **kwargs)¶
-
XElab.
LogVerbose
(*args, condition=True, **kwargs)¶
-
XElab.
LogWarning
(*args, condition=True, **kwargs)¶
-
XElab.
Logger
¶ Return the local logger instance.
-
XElab.
Path
¶
-
XElab.
ReadUntilBoundary
(indent=0)¶
-
XElab.
Send
(line, end='\n')¶
-
XElab.
SendBoundary
()¶
-
XElab.
StartProcess
(parameterList)¶
-
XElab.
Terminate
()¶
-
XElab.
_POC_BOUNDARY
= '====== POC BOUNDARY ======'¶
-
XElab.
_TryLog
(*args, condition=True, **kwargs)¶
-
-
class
ToolChain.Xilinx.Vivado.
XSim
(toolchain: ToolChain.ToolMixIn)[source]¶ Inheritance
Members
-
XSim.
Parameters
= [<class 'ToolChain.Xilinx.Vivado.XSim.Executable'>, <class 'ToolChain.Xilinx.Vivado.XSim.SwitchLogFile'>, <class 'ToolChain.Xilinx.Vivado.XSim.FlagGuiMode'>, <class 'ToolChain.Xilinx.Vivado.XSim.SwitchTclBatchFile'>, <class 'ToolChain.Xilinx.Vivado.XSim.SwitchWaveformFile'>, <class 'ToolChain.Xilinx.Vivado.XSim.SwitchSnapshot'>]¶
-
XSim.
GetReader
()¶
-
XSim.
HasErrors
¶ True if errors or fatals errors were found while processing the output stream.
-
XSim.
HasWarnings
¶ True if errors or fatals errors were found while processing the output stream.
-
XSim.
Log
(entry, condition=True)¶ Write an entry to the local logger.
-
XSim.
LogDebug
(*args, condition=True, **kwargs)¶
-
XSim.
LogDryRun
(*args, condition=True, **kwargs)¶
-
XSim.
LogError
(*args, condition=True, **kwargs)¶
-
XSim.
LogFatal
(*args, condition=True, **kwargs)¶
-
XSim.
LogInfo
(*args, condition=True, **kwargs)¶
-
XSim.
LogNormal
(*args, condition=True, **kwargs)¶
-
XSim.
LogQuiet
(*args, condition=True, **kwargs)¶
-
XSim.
LogVerbose
(*args, condition=True, **kwargs)¶
-
XSim.
LogWarning
(*args, condition=True, **kwargs)¶
-
XSim.
Logger
¶ Return the local logger instance.
-
XSim.
Path
¶
-
XSim.
ReadUntilBoundary
(indent=0)¶
-
XSim.
Send
(line, end='\n')¶
-
XSim.
SendBoundary
()¶
-
XSim.
StartProcess
(parameterList)¶
-
XSim.
Terminate
()¶
-
XSim.
_POC_BOUNDARY
= '====== POC BOUNDARY ======'¶
-
XSim.
_TryLog
(*args, condition=True, **kwargs)¶
-
-
class
ToolChain.Xilinx.Vivado.
Synth
(toolchain: ToolChain.ToolMixIn)[source]¶ Inheritance
Members
-
Synth.
Parameters
= [<class 'ToolChain.Xilinx.Vivado.Synth.Executable'>, <class 'ToolChain.Xilinx.Vivado.Synth.SwitchLogFile'>, <class 'ToolChain.Xilinx.Vivado.Synth.SwitchSourceFile'>, <class 'ToolChain.Xilinx.Vivado.Synth.SwitchMode'>]¶
-
Synth.
GetReader
()¶
-
Synth.
HasErrors
¶ True if errors or fatals errors were found while processing the output stream.
-
Synth.
HasWarnings
¶ True if errors or fatals errors were found while processing the output stream.
-
Synth.
Log
(entry, condition=True)¶ Write an entry to the local logger.
-
Synth.
LogDebug
(*args, condition=True, **kwargs)¶
-
Synth.
LogDryRun
(*args, condition=True, **kwargs)¶
-
Synth.
LogError
(*args, condition=True, **kwargs)¶
-
Synth.
LogFatal
(*args, condition=True, **kwargs)¶
-
Synth.
LogInfo
(*args, condition=True, **kwargs)¶
-
Synth.
LogNormal
(*args, condition=True, **kwargs)¶
-
Synth.
LogQuiet
(*args, condition=True, **kwargs)¶
-
Synth.
LogVerbose
(*args, condition=True, **kwargs)¶
-
Synth.
LogWarning
(*args, condition=True, **kwargs)¶
-
Synth.
Logger
¶ Return the local logger instance.
-
Synth.
Path
¶
-
Synth.
ReadUntilBoundary
(indent=0)¶
-
Synth.
Send
(line, end='\n')¶
-
Synth.
SendBoundary
()¶
-
Synth.
StartProcess
(parameterList)¶
-
Synth.
Terminate
()¶
-
Synth.
_POC_BOUNDARY
= '====== POC BOUNDARY ======'¶
-
Synth.
_TryLog
(*args, condition=True, **kwargs)¶
-
-
class
ToolChain.Xilinx.Vivado.
VivadoProject
(name)[source]¶ Inheritance
Members
-
AddExternalVHDLLibraries
(library)¶
-
AddFile
(file, fileSet=None)¶
-
AddFileSet
(fileSet)¶
-
AddSourceFile
(file, fileSet=None)¶
-
Board
¶
-
CreateFileSet
(name, setDefault=True)¶
-
DefaultFileSet
¶
-
Device
¶
-
Environment
¶
-
ExternalVHDLLibraries
¶
-
ExtractVHDLLibrariesFromVHDLSourceFiles
()¶
-
FileSets
¶
-
Files
(fileType=<FileTypes(Text|ProjectFile|FileListFile|RulesFile|SourceFile|VHDLSourceFile|VerilogSourceFile|PythonSourceFile|CocotbSourceFile|ConstraintFile|UcfConstraintFile|XdcConstraintFile|SdcConstraintFile|LdcConstraintFile|SettingsFile|QuartusSettingsFile) bits=0xFFFF>, fileSet=None)¶
-
GetVariables
()¶
-
Name
¶
-
RootDirectory
¶
-
Tool
¶
-
ToolChain
¶
-
VHDLLibraries
¶
-
VHDLVersion
¶
-
pprint
(indent=0)¶
-
-
class
ToolChain.Xilinx.Vivado.
VivadoProjectFile
(file)[source]¶ Inheritance
Members
-
FileName
¶
-
FileSet
¶
-
FileType
¶
-
Open
()¶
-
Path
¶
-
Project
¶
-
ReadFile
()¶
-
_FileType
= <FileTypes.ProjectFile bits=0x0002 data=UNDEFINED>¶
-
_ReadContent
()¶
-
-
class
ToolChain.Xilinx.Vivado.
XilinxDesignConstraintFile
(file, project=None, fileSet=None)[source]¶ Inheritance
Members
-
FileName
¶
-
FileSet
¶
-
FileType
¶
-
Open
()¶
-
Path
¶
-
Project
¶
-
ReadFile
()¶
-
_ReadContent
()¶
-
_FileType
= <FileTypes.XdcConstraintFile bits=0x0800 data=UNDEFINED>¶
-
Functions