Develop a Verilog model of a priority encoder for the code used in the ink-jet printer described in Example 2.9.
Many ink-jet printers have six cartridges for different colored ink: black, cyan, magenta, yellow, light cyan and light magenta. A multibit signal in such a printer indicates selection of one of the colors. Devise a minimal length code for the signal.