Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for inline if statement in state machine viewer #655

Open
SebekO opened this issue Sep 5, 2024 · 0 comments
Open

Support for inline if statement in state machine viewer #655

SebekO opened this issue Sep 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@SebekO
Copy link

SebekO commented Sep 5, 2024

When I use inline style to define state machine transactions the state machine viewer found it but can't display.

Describe the solution you'd like
It should work for if/else and inline ? : version.

Additional context
Code when works:

  always_comb begin : fsm_transaction_process
    if (!_if_oran_rts.rstn)
      nstate = IDLE;
    else begin
      case (cstate)
        IDLE           : if(_if_oran_rts.pre_sym_active) nstate = SET_DSA; else nstate =  IDLE;
        SET_DSA        : nstate = UPDATE_DSA;
        UPDATE_DSA     : nstate = CLEAR_FLAGS;
        CLEAR_FLAGS    : nstate = WAIT_SYM_END;
        WAIT_SYM_END   : if(_if_oran_rts.pre_sym_active) nstate = WAIT_SYM_END; else nstate =  IDLE;
        default        : nstate = IDLE;
      endcase
    end
  end : fsm_transaction_process

Results:
image

When not working:

  always_comb begin : fsm_transaction_process
    if (!_if_oran_rts.rstn)
      nstate = IDLE;
    else begin
      case (cstate)
        IDLE           : nstate = _if_oran_rts.pre_sym_active ? SET_DSA : IDLE;
        SET_DSA        : nstate = UPDATE_DSA;
        UPDATE_DSA     : nstate = CLEAR_FLAGS;
        CLEAR_FLAGS    : nstate = WAIT_SYM_END;
        WAIT_SYM_END   : nstate = _if_oran_rts.pre_sym_active ? WAIT_SYM_END : IDLE;
        default        : nstate = IDLE;
      endcase
    end
  end : fsm_transaction_process

Results:
image

@SebekO SebekO added the enhancement New feature or request label Sep 5, 2024
@SebekO SebekO changed the title Support for inline if statement in state machine viever Support for inline if statement in state machine viewer Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant