Base.Shared

Classes

  • Shared: Base class for Simulator and Compiler.

Functions

  • to_time(): Convert n seconds to a str with this pattern: “{min}:{sec:02}”.
class Base.Shared.Shared(host: Base.IHost, dryRun)[source]

Base class for Simulator and Compiler.

Parameters:
  • host (object) – The hosting instance for this instance.
  • dryRun (bool) – Enable dry-run mode
  • noCleanUp (bool) – Don’t clean up after a run.

Inheritance

Inheritance diagram of Shared

Members

ENVIRONMENT = 0
TOOL_CHAIN = 0
TOOL = 0
VHDL_VERSION = 2008
Host
DryRun
VHDLVersion
PoCProject
Directories
_GetTimeDeltaSinceLastEvent()[source]
_PrepareEnvironment()[source]
_PrepareEnvironment_PurgeDirectory()[source]
_PrepareEnvironment_CreatingDirectory()[source]
_PrepareEnvironment_ChangeDirectory()[source]

Change working directory to temporary path ‘temp/<tool>’.

_Prepare()[source]
_CreatePoCProject(projectName, board)[source]
_AddFileListFile(fileListFilePath)[source]
_GetHDLParameters(configSectionName)[source]

Parse option ‘HDLParameters’ for Verilog Parameters / VHDL Generics.

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.

_TryLog(*args, condition=True, **kwargs)

Functions

Base.Shared.to_time(seconds)[source]

Convert n seconds to a str with this pattern: “{min}:{sec:02}”.

Parameters:seconds (int) – Number of seconds to be converted.
Return type:str
Returns:Returns a string formatted as #:##. E.g. “1:05”