Forum Discussion

ZXued's avatar
ZXued
Icon for New Contributor rankNew Contributor
5 years ago

About 10bitsPerSymbol of ihc::stream_out

I want to use ihc::stream with 10bitsPerSymbol parameter, I defined a interface using:

typedef ihc::stream_out<ac_int<120, false>, ihc::buffer<2>, ihc::readyLatency<1>, ihc::usesPackets<true>, ihc::bitsPerSymbol<10>, ihc::usesEmpty<true>, ihc::firstSymbolInHighOrderBits<true>> stream_out_pixels;

When compiling, the compiler report following error:

_stream.h:769:54: error: HLS builtin parameter must be a factor of the type size

_readyLatency, _bitsPerSymbol,

How can I use 10bitsPerSymbol stream interface.

4 Replies

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

      Thanks for you replay, I remove ihc::buffer on output stream but the problem isn't been solved. I think the result of express "sizeof(ac_int<120, false>)" is not divisible by 10

  • AnilErinch_A_Intel's avatar
    AnilErinch_A_Intel
    Icon for Frequent Contributor rankFrequent Contributor

    Hi ,

    Can you try with different ac_int values and lets know , whether the compilation gets successful , when the result is divisible by 10 .

    Thanks and Regards

    Anil

    • whitepau_altera's avatar
      whitepau_altera
      Icon for Contributor rankContributor

      Hi @ZXued

      There is currently a restriction on `ihc::bitsPerSymbol` such that symbol widths must be a power of 2. This is a known issue.