hwt.simulator package

A package for binding to simulators and simulation utils.

note:

hwt package does not contain any RTL simulator, this is just an api to simulators.

Submodules

hwt.simulator.agentBase module

class hwt.simulator.agentBase.AgentWitReset(sim: HdlSimulator, hwIO, allowNoReset=False)[source]

Bases: AgentWitReset

__init__(sim: HdlSimulator, hwIO, allowNoReset=False)[source]
Parameters:

rst – tuple (rst signal, rst_negated flag)

classmethod _discoverReset(hwIO, allowNoReset: bool)[source]
notReset()[source]

Untility function returning state of the associated reset signal

class hwt.simulator.agentBase.SyncAgentBase(sim: HdlSimulator, hwIO, allowNoReset=False)[source]

Bases: AgentWitReset, SyncAgentBase

Agent which discovers clk, rst signal and runs only at specified edge of clk

Attention:

requires clk and rst/rstn signal (if you do not have any create simulation wrapper with it)

SELECTED_EDGE_CALLBACK

alias of OnRisingCallbackLoop

__init__(sim: HdlSimulator, hwIO, allowNoReset=False)[source]
Parameters:

rst – tuple (rst signal, rst_negated flag)

hwt.simulator.agentConnector module

hwt.simulator.rtlSimulator module

hwt.simulator.rtlSimulatorJson module

hwt.simulator.rtlSimulatorVcd module

hwt.simulator.simTestCase module

hwt.simulator.utils module