Results 1 to 3 of 3

Thread: Custom type simulation

  1. #1
    Join Date
    Feb 2017
    Posts
    6
    Rep Power
    1

    Default Custom type simulation

    Hi,
    in my VHDL design I have custom type:

    type T_STATE is (STOPPED, STARTED, RUNNING);
    signal state: T_STATE;

    In Simulation Waveform editor I want to see value of state signal so I go to Insert Node or Bus and I add state signal so it appears in the left column of Simulation Waveform Editor. I run simulation, however the value of state signal is always u (undefined probably). I'm sure state has always some value (STOPPED or STARTED or RUNNING). Can you please help how to display value of custom type in Simulation waveform editor?

  2. #2
    Tricky is offline Moderator **Forum Master**
    Join Date
    Oct 2008
    Posts
    6,031
    Rep Power
    1

    Default Re: Custom type simulation

    If you use the Quartus simulator, it simulates the netlist, so it will not use your custom type. You will need to use an RTL simulator, like modelsim, to be able to see your custom type.

  3. #3
    Join Date
    Feb 2017
    Posts
    6
    Rep Power
    1

    Default Re: Custom type simulation

    Thank you!

Similar Threads

  1. Hierarchical reference to custom type
    By designs_the_limit in forum VHDL
    Replies: 6
    Last Post: July 18th, 2016, 08:34 AM
  2. Synthsized away custom record type bus
    By nicx82 in forum Quartus II and EDA Tools Discussion
    Replies: 8
    Last Post: February 4th, 2016, 02:08 AM
  3. Different simulation results depending on device type set in Device Block
    By RoadRunner in forum DSP Builder and DSP IPs
    Replies: 10
    Last Post: January 10th, 2014, 02:05 AM
  4. VHDL Type Mismatch error indexed name returns a value whose type does not match
    By programmingzeal in forum Quartus II and EDA Tools Discussion
    Replies: 8
    Last Post: May 8th, 2012, 04:16 AM
  5. Nios Custom Component with sfixed type output
    By nicx82 in forum General Discussion Forum
    Replies: 5
    Last Post: December 30th, 2011, 11:23 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •