
GD32L23x User Manual
161
9.
True random number generator (TRNG)
9.1.
Overview
The true random number generator (TRNG) module can generate a 32-bit random value by
using continuous analog noise.
9.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.
9.3.
Function overview
Figure 9-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