Skip to content

Loader

Loader.

  • load() is one and only method to pickup and instantiate the topmost hardware module.

load

load(topmodref, paths=None)

Load Module from topmodref and return :any:Top.

In case of a given topref.sub search for a submodule named sub within the module hierarchy of topmod using :any:Top.get_mod().

In case of a given tb search for a testbench tb and pair it.

Parameters:

Name Type Description Default
topmodref TopModRef | str

Items.

required

Other Parameters:

Name Type Description
paths Iterable[Path] | None

Additional Search Paths for Python Modules.

Returns:

Name Type Description
Top Top

Top