The basic pattern generator has two main functional modes: loopback and generator. In loopback, the data from the RX FIFO is passed to the address swap module which passes the data to the TX FIFO. In Generator mode, the TX data is provided by the pattern generator while RX data is checked by the pattern checker.