ToolChain.Altera.Quartus¶
Exceptions
QuartusException
: Base class for all tool specific exceptions
Classes
QuartusEditions
: Enumeration of all Quartus editions provided by Altera itself.Configuration
: Base class for all tool Configuration classes.Quartus
: Undocumented.Map
: Represent an executable.TclShell
: Represent an executable.QuartusSession
: Undocumented.QuartusProject
: Undocumented.QuartusSettings
: Undocumented.QuartusProjectFile
: Undocumented.
Functions
MapFilter()
: Undocumented.
-
exception
ToolChain.Altera.Quartus.
QuartusException
(message='')[source]¶ Inheritance
Members
-
__str__
()¶ Returns the exception’s message text.
-
args
¶
-
-
class
ToolChain.Altera.Quartus.
QuartusEditions
(name, section)[source]¶ Enumeration of all Quartus editions provided by Altera itself.
Inheritance
Members
-
AlteraQuartus
= 1¶
-
IntelQuartus
= 2¶
-
-
class
ToolChain.Altera.Quartus.
Configuration
(host: Base.IHost)[source]¶ Inheritance
Members
-
_vendor
= 'Altera'¶ The name of the tools vendor.
-
_toolName
= 'Altera Quartus'¶ The name of the tool.
-
_section
= 'INSTALL.Altera.Quartus'¶ The name of the configuration section. Pattern:
INSTALL.Vendor.ToolName
.
-
_multiVersionSupport
= True¶ Altera Quartus supports multiple versions installed on the same system.
-
_template
= {'Windows': {'INSTALL.Altera.Quartus': {'Version': '16.0', 'SectionName': ('%{PathWithRoot}#${Version}', None), 'InstallationDirectory': ('${${SectionName}:InstallationDirectory}', '${INSTALL.Altera:InstallationDirectory}/${Version}/quartus'), 'BinaryDirectory': ('${${SectionName}:BinaryDirectory}', '${InstallationDirectory}/bin64')}}, 'Linux': {'INSTALL.Altera.Quartus': {'Version': '16.0', 'SectionName': ('%{PathWithRoot}#${Version}', None), 'InstallationDirectory': ('${${SectionName}:InstallationDirectory}', '${INSTALL.Altera:InstallationDirectory}/${Version}/quartus'), '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__CheckQuartusVersion
(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.Altera.Quartus.
Quartus
(platform, dryrun, binaryDirectoryPath, version, logger=None)[source]¶ Inheritance
Members
-
class
ToolChain.Altera.Quartus.
Map
(toolchain: ToolChain.ToolMixIn)[source]¶ Inheritance
Members
-
Map.
Parameters
= [<class 'ToolChain.Altera.Quartus.Map.Executable'>, <class 'ToolChain.Altera.Quartus.Map.ArgProjectName'>, <class 'ToolChain.Altera.Quartus.Map.SwitchArgumentFile'>, <class 'ToolChain.Altera.Quartus.Map.SwitchDeviceFamily'>, <class 'ToolChain.Altera.Quartus.Map.SwitchDevicePart'>]¶
-
Map.
GetReader
()¶
-
Map.
HasErrors
¶ True if errors or fatals errors were found while processing the output stream.
-
Map.
HasWarnings
¶ True if errors or fatals errors were found while processing the output stream.
-
Map.
Log
(entry, condition=True)¶ Write an entry to the local logger.
-
Map.
LogDebug
(*args, condition=True, **kwargs)¶
-
Map.
LogDryRun
(*args, condition=True, **kwargs)¶
-
Map.
LogError
(*args, condition=True, **kwargs)¶
-
Map.
LogFatal
(*args, condition=True, **kwargs)¶
-
Map.
LogInfo
(*args, condition=True, **kwargs)¶
-
Map.
LogNormal
(*args, condition=True, **kwargs)¶
-
Map.
LogQuiet
(*args, condition=True, **kwargs)¶
-
Map.
LogVerbose
(*args, condition=True, **kwargs)¶
-
Map.
LogWarning
(*args, condition=True, **kwargs)¶
-
Map.
Logger
¶ Return the local logger instance.
-
Map.
Path
¶
-
Map.
ReadUntilBoundary
(indent=0)¶
-
Map.
Send
(line, end='\n')¶
-
Map.
SendBoundary
()¶
-
Map.
StartProcess
(parameterList)¶
-
Map.
Terminate
()¶
-
Map.
_POC_BOUNDARY
= '====== POC BOUNDARY ======'¶
-
Map.
_TryLog
(*args, condition=True, **kwargs)¶
-
-
class
ToolChain.Altera.Quartus.
TclShell
(toolchain: ToolChain.ToolMixIn)[source]¶ Inheritance
Members
-
TclShell.
Parameters
= [<class 'ToolChain.Altera.Quartus.TclShell.Executable'>, <class 'ToolChain.Altera.Quartus.TclShell.SwitchShell'>]¶
-
TclShell.
GetReader
()¶
-
TclShell.
Log
(entry, condition=True)¶ Write an entry to the local logger.
-
TclShell.
LogDebug
(*args, condition=True, **kwargs)¶
-
TclShell.
LogDryRun
(*args, condition=True, **kwargs)¶
-
TclShell.
LogError
(*args, condition=True, **kwargs)¶
-
TclShell.
LogFatal
(*args, condition=True, **kwargs)¶
-
TclShell.
LogInfo
(*args, condition=True, **kwargs)¶
-
TclShell.
LogNormal
(*args, condition=True, **kwargs)¶
-
TclShell.
LogQuiet
(*args, condition=True, **kwargs)¶
-
TclShell.
LogVerbose
(*args, condition=True, **kwargs)¶
-
TclShell.
LogWarning
(*args, condition=True, **kwargs)¶
-
TclShell.
Logger
¶ Return the local logger instance.
-
TclShell.
Path
¶
-
TclShell.
ReadUntilBoundary
(indent=0)¶
-
TclShell.
Send
(line, end='\n')¶
-
TclShell.
SendBoundary
()¶
-
TclShell.
StartProcess
(parameterList)¶
-
TclShell.
Terminate
()¶
-
TclShell.
_POC_BOUNDARY
= '====== POC BOUNDARY ======'¶
-
TclShell.
_TryLog
(*args, condition=True, **kwargs)¶
-
-
class
ToolChain.Altera.Quartus.
QuartusProject
(host, name, projectFile=None)[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.Altera.Quartus.
QuartusSettings
(name, settingsFile=None)[source]¶ Inheritance
Members
-
File
¶
-
GlobalAssignments
¶
-
Parameters
¶
-
FileName
¶
-
FileSet
¶
-
FileType
¶
-
Open
()¶
-
Path
¶
-
Project
¶
-
ReadFile
()¶
-
_FileType
= <FileTypes.SettingsFile bits=0x4000 data=UNDEFINED>¶
-
_ReadContent
()¶
-
-
class
ToolChain.Altera.Quartus.
QuartusProjectFile
(file)[source]¶ Inheritance
Members
-
FileName
¶
-
FileSet
¶
-
FileType
¶
-
Open
()¶
-
Path
¶
-
Project
¶
-
ReadFile
()¶
-
_FileType
= <FileTypes.ProjectFile bits=0x0002 data=UNDEFINED>¶
-
_ReadContent
()¶
-
Functions