Menu

#21 GTKWave does not display arrays, but ghdl does

closed-fixed
nobody
None
5
2011-02-03
2011-02-02
guepe
No

I am working on a VHDL project with multiple arrays, declared like that:

TYPE port_2d IS ARRAY(integer range<>) of std_logic_vector(NB_BITS-1 downto 0);

And used (example):
in_port : in port_2d((NB_PORT-1) downto 0);

In use ghdl to compile and run the simulation. All signals and in/out that are std_logic_vector or std_logic can be viewed in gtkwave.
However, any signal that is an array is not in the signal list in gtkwave ! I tried to print the whole hierarchy of signals in ghdl (using --disp-tree) , and they are displayed:

+-in_port [port in]

Not a single signal declared as array is shown in gtkwave.

Discussion

  • guepe

    guepe - 2011-02-02

    Simple testbench to show that test_array signal is not shown in gtkwave

     
  • guepe

    guepe - 2011-02-02

    I have investigated more on that and found a few things :

    - the problem described happens when using vcd format and VHDL source code
    - using the ghw format for waveform, GTKWave displays a warning, but the array can be viewed. However, it is not easy to use, since only vectors inside each array block can be dropped to the waveform view. The signals are then displayed correctly.

    It does not seem to be possible to simply drop the whole array inside the signal view, it is mandatory to paste each block independantly.

     
  • Tony Bybell

    Tony Bybell - 2011-02-03

    1) Are you looking at a VCD or GHW file? If it is VCD, the format does not have the ability to dump arrays.
    2) If it is GHW, please run ghwdump on the file to see if it was dumped in the GHW file. If so, attach the generated file. I do not have GHDL installed.

    Thanks.

     
  • Tony Bybell

    Tony Bybell - 2011-02-03

    Use the hierarchy search widget (not the tree search one) to import whole sections of hierarchy. That is, it imports all signals underneath what is selected so the whole array will import at once. Note currently that it crashes if you directly try to import "standard", "textio", etc package names which incorrectly show up at the 2nd level of hierarchy. I will check in a fix once sourceforce CVS is back up.

     
  • Tony Bybell

    Tony Bybell - 2011-02-03
    • status: open --> closed-fixed
     
MongoDB Logo MongoDB