Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

Displaying states in Modelsim

Is there a way to dispaly for example "State 1" instead of 10011 in the wave diagram in Modelsim? I ma using 6.5 PE

Thanks

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Is there a way to dispaly for example "State 1" instead of 10011 in the wave diagram in Modelsim? I ma using 6.5 PE

    Thanks

    --- Quote End ---

    If you're simulating the post-route netlist then 'No' since the post-route model has no sense of 'states', 'integers' or anything such stuff, only 'bits'.

    If you're simulating your source code then the state names will be there in the wave window.

    Kevin Jennings
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    you can define a new radix using TCl commands in modelsim

    radix define my_states {

    5'b00000 "state0"

    5'b00001 "state1"

    # etc

    }

    But if its a post route model, unless you defined the state encodings yourself it will be harder find out what they are, and they can change between compiles.