Skip to content

FSM with transition to nonexistent state should not elaborate #315

Closed
@awygle

Description

@awygle

M(ish)CVE: https://gist.github.com/awygle/00cca56b2d58185f3ab7112739588882

Basically, if you have an FSM transition to a state which doesn't have a corresponding with m.State("NAME") statement, I'd expect it to fail to elaborate.

I'm admittedly very new to nmigen so it's possible I am doing something wrong here, but this seems sufficiently intuitive that even if it's not the intended behavior, I'd argue that perhaps it ought to be.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions