== Noise Generator ==
The noise generator uses a [https://en.wikipedia.org/wiki/Linear-feedback_shift_register Linear-Feedback Shift Register] algorithm. It is described in detail in the [[Media:Microchip ay8930.pdf|AY-8930 datasheet]].
The noise generator uses a [https://en.wikipedia.org/wiki/Linear-feedback_shift_register Linear-Feedback Shift Register] algorithm. The random number generator of the 8910 is a 17-bit shift register. According to [https://github.com/mamedev/mame/blob/master/src/devices/sound/ay8910.cpp MAME]: The input to the shift register is bit0 XOR bit3. Bit0 is the output. This was verified on AY-3-8910 and YM2149 chips. However, the algorithm is described in detail in the [[Media:Microchip ay8930.pdf|AY-8930 datasheet]]. And it disagrees with MAME, the input to the shift register is bit0 XOR bit2.
[[File:AY38910A noise block diagram.png]]