hdl.dsl: add Default(), an alias for Case() with no arguments.
Fixes #197.
This commit is contained in:
parent
eb04a2509e
commit
3f6abc0b7a
2 changed files with 21 additions and 1 deletions
|
|
@ -289,6 +289,9 @@ class Module(_ModuleBuilderRoot, Elaboratable):
|
|||
self._ctrl_context = "Switch"
|
||||
self._statements = _outer_case
|
||||
|
||||
def Default(self):
|
||||
return self.Case()
|
||||
|
||||
@contextmanager
|
||||
def FSM(self, reset=None, domain="sync", name="fsm"):
|
||||
self._check_context("FSM", context=None)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue