GD32F20x User Manual
187
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
Summary of Contents for GD32F20 Series
Page 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Page 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Page 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Page 385: ...GD32F20x User Manual 385 ...
Page 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...