Forum Discussion

Luigi_Boy's avatar
Luigi_Boy
Icon for New Contributor rankNew Contributor
1 year ago

Do some operations on a signal/variable in signal tap

Is it possible to do some basic operations with one or more signals/variables together?

I imagined something like an operation (division) between two integers.

If not, wouldn't this be a cool feature though?

8 Replies

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

    Not sure what you mean. Signal Tap is a logic analyzer, designed to show you signal levels internal to a design at a point in time defined by a trigger. What do you mean by performing an "operation" with it?

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

      True but what do you mean with a trigger that divides two integers? A trigger requires a boolean result.

  • Luigi_Boy's avatar
    Luigi_Boy
    Icon for New Contributor rankNew Contributor

    Thank you for your responses! I think there might have been a misunderstanding regarding my question.

    I'm not looking to create advanced trigger conditions but rather to perform basic operations on captured signals within Signal Tap after they have been recorded. For example, if I have two signals representing integer values, I'd like to apply operations like division or addition between them in the post-analysis phase.

    Is there a way to do this directly within Signal Tap, or would I need to export the data and process it externally?

    Thanks in advance!

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

      As mentioned, this would have nothing to do with Signal Tap. This would need to be part of your design itself.

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

    Hi,


    The feature that mentioned I think you need to do it externally. Signal tap don't have this feature. Signal tap is used to view waveform by setting the trigger condition.


    Thanks,

    Regards,

    Sheng


    • Luigi_Boy's avatar
      Luigi_Boy
      Icon for New Contributor rankNew Contributor

      I understand that, but I think if we compare the debugging capabilities with embedded hardware, one would see how powerful those are. Obviously, a lot of stuff has to be deployed in hardware, which is perfectly fine for me. This would also help to not change the code, but rather deploy it from the Signal Tap and the remove it from production. I guess, if the trigger condition does support this mechanism to deploy hardware, it shouldn't be that trivial to manipulate signals.

  • Luigi_Boy's avatar
    Luigi_Boy
    Icon for New Contributor rankNew Contributor

    Thank you very much for the replies. I see, yeah, I just wanted to have a quick way of filtering/manipulating the data and avoiding to utilise more hardware resources. Even though this is something different: I couldn't manage to display/list a signal twice resp. multiple times. I understand it kind of doesn't make sense, as it's already being displayed, but in my case it would very useful, as I wanted to group a big vector in multiple sub-words of x-bits, but I also wanted to do the same with n-bits.

    Cheers,

    Luigi_Boy