Forum Discussion

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

Displaying Serial Data

Hi,

Is there a way to display serial data as packets in the simulation tool. I am developing a SPI interface and it would be nice if it displayed the hex value of the packet rather than the binary status of the data pin

5 Replies

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

    --- Quote Start ---

    What simulation tool do you use?

    --- Quote End ---

    I am using the simulator in Quartus II
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Similar actions are usually performed in a HDL testbench with full featured simulators as ModelSim. They are particularly necessary when you want your debugging enviroment to interact with your design. You may want to simulate an external device that answers a command send by your design, with the same timing as the real device. For your convenience, you may want to simply use an existing HDL design of the external device to generate this behaviour.

    Quartus simulator doesn't have a testbench option, but you can modify your design to include part of the debugging enviroment, also a decoder for internal signals, as requested. If you want to perform these actions more than once, it's a good idea to learn ModelSim operation.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Similar actions are usually performed in a HDL testbench with full featured simulators as ModelSim. They are particularly necessary when you want your debugging enviroment to interact with your design. You may want to simulate an external device that answers a command send by your design, with the same timing as the real device. For your convenience, you may want to simply use an existing HDL design of the external device to generate this behaviour.

    Quartus simulator doesn't have a testbench option, but you can modify your design to include part of the debugging enviroment, also a decoder for internal signals, as requested. If you want to perform these actions more than once, it's a good idea to learn ModelSim operation.

    --- Quote End ---

    Thanks for the explanation
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    In the ModelSim simulation tool it is easy. See the attached picture.

    Modelsim Altera Starter Edition is provided for free together with Quartus II web-edition.