DSL

class torii.hdl.dsl.Module None

Todo

Document Me

If(cond: ValueCastT)

Todo

Document Me

Elif(cond: ValueCastT)

Todo

Document Me

Else()

Todo

Document Me

Switch(test)

Todo

Document Me

Case(*patterns)

Todo

Document Me

Default()

Todo

Document Me

FSM(reset: str | None = None, domain='sync', name='fsm')

Todo

Document Me

State(name: str)

Todo

Document Me

property next

Todo

Document Me

elaborate(platform: Platform | None)

Todo

Document Me

has_submodule(name: str) bool

Check to see if a submodule with the given name has been added to this module.

Important

This should be used over trying to use hasattr() on m.submodules as it will not have the expected results.

Parameters:

name (str) – The name of the submodule to look for.

Return type:

bool

Returns:

bool – If a submodule with the given name exists or not