ToolChain.Lattice.Diamond¶
Exceptions
DiamondException: Base class for all tool specific exceptions
Classes
Configuration: Base class for all tool Configuration classes.Diamond: Undocumented.Synth: Represent an executable.SynthesisArgumentFile: Undocumented.
Functions
MapFilter(): Undocumented.CompilerFilter(): Undocumented.
-
exception
ToolChain.Lattice.Diamond.DiamondException(message='')[source]¶ Inheritance
Members
-
__str__()¶ Returns the exception’s message text.
-
args¶
-
-
class
ToolChain.Lattice.Diamond.Configuration(host: Base.IHost)[source]¶ Inheritance
Members
-
_vendor= 'Lattice'¶ The name of the tools vendor.
-
_toolName= 'Lattice Diamond'¶ The name of the tool.
-
_section= 'INSTALL.Lattice.Diamond'¶ The name of the configuration section. Pattern:
INSTALL.Vendor.ToolName.
-
_multiVersionSupport= True¶ Lattice Diamond supports multiple versions installed on the same system.
-
_template= {'Windows': {'INSTALL.Lattice.Diamond': {'Version': '3.8', 'SectionName': ('%{PathWithRoot}#${Version}', None), 'InstallationDirectory': ('${${SectionName}:InstallationDirectory}', '${INSTALL.Lattice:InstallationDirectory}/Diamond/${Version}_x64'), 'BinaryDirectory2': ('${${SectionName}:BinaryDirectory2}', '${InstallationDirectory}/ispfpga/bin/nt64'), 'BinaryDirectory': ('${${SectionName}:BinaryDirectory}', '${InstallationDirectory}/bin/nt64')}}, 'Linux': {'INSTALL.Lattice.Diamond': {'Version': '3.8', 'SectionName': ('%{PathWithRoot}#${Version}', None), 'InstallationDirectory': ('${${SectionName}:InstallationDirectory}', '${INSTALL.Lattice:InstallationDirectory}/diamond/${Version}_x64'), 'BinaryDirectory2': ('${${SectionName}:BinaryDirectory2}', '${InstallationDirectory}/ispfpga/bin/lin64'), 'BinaryDirectory': ('${${SectionName}:BinaryDirectory}', '${InstallationDirectory}/bin/lin64')}}}¶ The template for the configuration sections represented as nested dictionaries.
-
_ConfigureBinaryDirectory()[source]¶ Updates section with value from _template and returns directory as Path object.
-
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__CheckDiamondVersion(binPath, version)¶
-
_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.Lattice.Diamond.Diamond(platform, dryrun, binaryDirectoryPath, version, logger=None)[source]¶ Inheritance
Members
-
class
ToolChain.Lattice.Diamond.Synth(toolchain: ToolChain.ToolMixIn)[source]¶ Inheritance
Members
-
Synth.Parameters= [<class 'ToolChain.Lattice.Diamond.Synth.Executable'>, <class 'ToolChain.Lattice.Diamond.Synth.SwitchProjectFile'>]¶
-
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.Lattice.Diamond.SynthesisArgumentFile(file)[source]¶ Inheritance
Members
-
Architecture¶
-
Device¶
-
SpeedGrade¶
-
Package¶
-
TopLevel¶
-
FileName¶
-
FileSet¶
-
FileType¶
-
Open()¶
-
Path¶
-
Project¶
-
ReadFile()¶
-
_FileType= <FileTypes() bits=0x0000>¶
-
_ReadContent()¶
-
LogFile¶
-
VHDLVersion¶
-
HDLParams¶
-
Functions