Forum Discussion

RZhen11's avatar
RZhen11
Icon for Occasional Contributor rankOccasional Contributor
2 years ago

Questa how to add variable of subpgram to wave

Hi,

I am only able to add variable in the top-level of my testbench to wave.

Questa Intel 2021.2

Any variable in a subprogram (within a procedure call in a BFM file) add to wave, I will get:

# Cannot log variable_in_subpgram Process proc_name is currently executing a subpgram.

I can only view the variable in the Locals pane during simulation, but it can't be logged.

Tried compile option: "Use vopt flow", "Disable optimizations by using -O0", no difference.

Please comment,

Thanks,

2 Replies

  • ShengN_altera's avatar
    ShengN_altera
    Icon for Super Contributor rankSuper Contributor

    Hi,

    Try to link any variable or signal in a subprogram within a procedure call to top level entity and testbench so that can be add wave. Attached a sample design for your reference.

    Thanks,

    Best Regards,

    Sheng

    p/s: If any answer from the community or Intel Support are helpful, please feel free to give best answer.