1 Reply Latest reply on Nov 21, 2019 7:56 PM by AH_96

    PSoC 6 RNG power consumption

    AnCi_2234676

      I need to generate a buffer filled with random bytes not equal to 0 and I was wondering what would be the most effective in terms of power consumption.

       

      First, between the PRNG and the TRNG, is there a significant difference in power consumption?

       

      Also, out of the following options, which one would be the best in terms of power consumption:

      1. Generate a 4 bytes random number, but only check the first byte. If it is not 0, add it to the buffer. Repeat until buffer is full.
      2. Generate a 4 bytes random number. Add the 4 bytes to the buffer if none of them is 0. Repeat until buffer is full.
      3. Generate a 4 bytes random number. Loop through the 4 bytes. If it is not 0, add it to the buffer. Repeat until buffer is full.

       

      Thanks!