Top
Top.
Top
Bases: Object
Top Module Reference.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mod |
BaseMod
|
Top Module |
required |
iter
Iterate Over All Modules.
Other Parameters:
| Name | Type | Description |
|---|---|---|
filter_ |
function called with every |
|
stop |
stop iteration at |
|
maxlevel |
int
|
maximum descending in the mod hierarchy. |
unique |
bool
|
Just return module once and NOT all instances of it. |
post |
bool
|
Post-Order Iteration Strategy instead of Pre-Order Iteration Strategy. |
get_mods
Return all modules matching namepats.
Iterate top and all its submodules and return matching ones.
Other Parameters:
| Name | Type | Description |
|---|---|---|
namepats |
Names | None
|
Iterable with name pattern (including |
unique |
bool
|
Just return every module once. |
base |
bool
|
namepats must match against module |
get_mod
Return the one and just the one hardware module matching namepats.
Iterate over mod and all its submodules and return matching one.
Other Parameters:
| Name | Type | Description |
|---|---|---|
namepats |
Names
|
Iterable with name pattern (including |
base |
bool
|
namepats must match against module |