Reading OUT ports for debugging

前端 未结 3 1079
鱼传尺愫
鱼传尺愫 2021-01-22 07:52

I have a FIFO which has an interface that looks something like this:

entity fifo is
    port (
    CLK               : IN  std_logic := \'0\';
    DIN                    


        
相关标签:
3条回答
  • 2021-01-22 08:27

    Use BUFFER instead of out. Then you can read without the intermediate signal used in Charles' solution.

    0 讨论(0)
  • 2021-01-22 08:35

    You have to assign the fifo output to a local signal you can read, then assign that signal to the output (or assign them both in parallel):

    DBG_FIFO_OUT <= (your logic here);
    DOUT         <= DBG_FIFO_OUT;
    

    or

    DBG_FIFO_OUT <= (your logic here);
    DOUT         <= (your logic here);
    
    0 讨论(0)
  • 2021-01-22 08:39

    You have good answers already for older tools - but if you use some tool which supports VHDL-2008, you are allowed to read output ports directly. You may need to enable this with a command line option.

    If your tools don't support it, whinge at the supplier until they do!

    0 讨论(0)
提交回复
热议问题