The APG can be put in generate-consume mode using the following programming sequence:
1. Setup the APG configuration registers for no of channels, data width, sampling, and pattern.
Note: These values cannot be updated after the APG is started.
2. Program the Multiplier value. Program the channel status and user bits.
Note: The multiplier value should match with the aud_clk frequency
3. Program the Control registers to put the APG in generate mode.
Note: In this mode, the APG outputs the audio samples and at the same time consumes the audio on AXIS slave interface by asserting ready.
To change the APG to bypass mode, simply program the Control register bit  to ‘1’. All other registers are ignored when APG is set in the bypass mode. Irrespective of the APG mode (generate or bypass), the checker can be enabled by programming the Control Register bit  to 1.
Note: In bypass mode, the APG connects the Master and Slave AXIS interfaces. In generate-consume mode, the APG continuously generates the samples at a programmed rate. A small buffer is available which can overflow if the samples are not consumed.