Simulator.GHDLSimulator

Classes

  • Simulator: This class encapsulates the GHDL simulator.
class Simulator.GHDLSimulator.Simulator(host, dryRun, simulationSteps)[source]

This class encapsulates the GHDL simulator.

Inheritance

Inheritance diagram of Simulator

Members

TOOL_CHAIN = 40
TOOL = ('GHDL', 'GHDL', 'GHDL')
_PrepareSimulator()[source]

Create the GHDL executable factory instance.

Run(testbench, board, vhdlVersion, vhdlGenerics=None, withCoverage=False)[source]
_RunAnalysis(testbench)[source]
_SetVHDLVersionAndIEEEFlavor(ghdl)[source]
_SetExternalLibraryReferences(ghdl)[source]
_RunElaboration(testbench)[source]
_RunSimulation(testbench)[source]
_RunView(testbench)[source]

foo

_RunCoverage(testbench)[source]
Directories
DryRun
ENVIRONMENT = 1
Host
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.

PoCProject
PrintOverallSimulationReport()[source]
PrintSimulationReportLine(testObject, indent, nameColumnWidth)[source]
RunAll(fqnList, *args, **kwargs)[source]

Run a list of testbenches. Expand wildcards to all selected testbenches.

TestSuite
TryRun(testbench, *args, **kwargs)[source]

Try to run a testbench. Skip skipable exceptions by printing the error and its cause.

VHDLVersion
VHDL_VERSION = 2008
_AddFileListFile(fileListFilePath)
_CreatePoCProject(projectName, board)
_GetHDLParameters(configSectionName)

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

_GetTimeDeltaSinceLastEvent()
_Prepare()
_PrepareEnvironment()
_PrepareEnvironment_ChangeDirectory()

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

_PrepareEnvironment_CreatingDirectory()
_PrepareEnvironment_PurgeDirectory()[source]
_PrepareSimulationEnvironment()[source]
_TryLog(*args, condition=True, **kwargs)