A method and apparatus for generating multiple levels of optical signals. A plurality
of electrical currents is produced. The magnitudes of the electrical currents are
independent of each other. Optical signals are produced using the electrical currents.
Each optical signal has an amplitude corresponding to one of the multiple levels.
The amplitudes of the optical signals corresponding to a level are adjustable by
independently adjusting a respective electrical current. Amplitudes of optical
signals corresponding to other levels may be adjusted independently.