GD32W51x User Manual
310
11.
True random number generator (TRNG)
11.1.
Overview
The true random number generator (TRNG) module can generate a 32-bit random value by
using continuous analog noise.
11.2.
Characteristics
About 40 periods of TRNG_CLK are needed between two consecutive random numbers
Disable TRNG module will significantly reduce the chip power consumption
32-bit random value seed is generated from analog noise, so the random number is a
true random number.
11.3.
Function overview
Figure 11-1. TRNG block diagram
AHB 32-bit Bus
TRNG_CTL
TRNG_STAT
TRNG_DATA
LFSR
Clock Check
Analog Seed
TRNG_CLK
Seed Check
HCLK
The random number seed comes from analog circuit. This analog seed is then plugged into
a linear feedback shift register (LFSR), where a 32-bit width random number is generated.
The analog seed is generated by several ring oscillators. The LFSR is driven by a configurable