RGBtoYPhaseAmpl.v 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. /*
  2. * RGB332 to Luma-PhaseSelect-Amplitude lookup table
  3. */
  4. module RGBtoYPhaseAmpl(
  5. input [7:0] rgb332, // rrrgggbb
  6. output reg [7:0] luma,
  7. output reg [4:0] phase,
  8. output reg [7:0] ampl
  9. );
  10. always @(*)
  11. case(rgb332)
  12. 8'b00000000 : begin luma <= 8'd72; phase <= 5'd5; ampl <= 8'd0; end
  13. 8'b00000001 : begin luma <= 8'd79; phase <= 5'd17; ampl <= 8'd19; end
  14. 8'b00000010 : begin luma <= 8'd85; phase <= 5'd17; ampl <= 8'd39; end
  15. 8'b00000011 : begin luma <= 8'd92; phase <= 5'd17; ampl <= 8'd58; end
  16. 8'b00000100 : begin luma <= 8'd87; phase <= 5'd27; ampl <= 8'd11; end
  17. 8'b00000101 : begin luma <= 8'd94; phase <= 5'd20; ampl <= 8'd19; end
  18. 8'b00000110 : begin luma <= 8'd101; phase <= 5'd19; ampl <= 8'd37; end
  19. 8'b00000111 : begin luma <= 8'd108; phase <= 5'd18; ampl <= 8'd56; end
  20. 8'b00001000 : begin luma <= 8'd103; phase <= 5'd27; ampl <= 8'd22; end
  21. 8'b00001001 : begin luma <= 8'd110; phase <= 5'd22; ampl <= 8'd25; end
  22. 8'b00001010 : begin luma <= 8'd116; phase <= 5'd20; ampl <= 8'd39; end
  23. 8'b00001011 : begin luma <= 8'd123; phase <= 5'd19; ampl <= 8'd56; end
  24. 8'b00001100 : begin luma <= 8'd118; phase <= 5'd27; ampl <= 8'd33; end
  25. 8'b00001101 : begin luma <= 8'd125; phase <= 5'd24; ampl <= 8'd33; end
  26. 8'b00001110 : begin luma <= 8'd132; phase <= 5'd21; ampl <= 8'd43; end
  27. 8'b00001111 : begin luma <= 8'd138; phase <= 5'd20; ampl <= 8'd58; end
  28. 8'b00010000 : begin luma <= 8'd134; phase <= 5'd27; ampl <= 8'd44; end
  29. 8'b00010001 : begin luma <= 8'd140; phase <= 5'd24; ampl <= 8'd43; end
  30. 8'b00010010 : begin luma <= 8'd147; phase <= 5'd22; ampl <= 8'd50; end
  31. 8'b00010011 : begin luma <= 8'd154; phase <= 5'd21; ampl <= 8'd62; end
  32. 8'b00010100 : begin luma <= 8'd149; phase <= 5'd27; ampl <= 8'd55; end
  33. 8'b00010101 : begin luma <= 8'd156; phase <= 5'd25; ampl <= 8'd53; end
  34. 8'b00010110 : begin luma <= 8'd163; phase <= 5'd23; ampl <= 8'd58; end
  35. 8'b00010111 : begin luma <= 8'd169; phase <= 5'd22; ampl <= 8'd68; end
  36. 8'b00011000 : begin luma <= 8'd165; phase <= 5'd27; ampl <= 8'd66; end
  37. 8'b00011001 : begin luma <= 8'd171; phase <= 5'd25; ampl <= 8'd64; end
  38. 8'b00011010 : begin luma <= 8'd178; phase <= 5'd24; ampl <= 8'd67; end
  39. 8'b00011011 : begin luma <= 8'd185; phase <= 5'd22; ampl <= 8'd75; end
  40. 8'b00011100 : begin luma <= 8'd180; phase <= 5'd27; ampl <= 8'd77; end
  41. 8'b00011101 : begin luma <= 8'd187; phase <= 5'd25; ampl <= 8'd74; end
  42. 8'b00011110 : begin luma <= 8'd193; phase <= 5'd24; ampl <= 8'd76; end
  43. 8'b00011111 : begin luma <= 8'd200; phase <= 5'd23; ampl <= 8'd83; end
  44. 8'b00100000 : begin luma <= 8'd80; phase <= 5'd7; ampl <= 8'd12; end
  45. 8'b00100001 : begin luma <= 8'd87; phase <= 5'd14; ampl <= 8'd18; end
  46. 8'b00100010 : begin luma <= 8'd93; phase <= 5'd16; ampl <= 8'd35; end
  47. 8'b00100011 : begin luma <= 8'd100; phase <= 5'd16; ampl <= 8'd54; end
  48. 8'b00100100 : begin luma <= 8'd95; phase <= 5'd1; ampl <= 8'd8; end
  49. 8'b00100101 : begin luma <= 8'd102; phase <= 5'd17; ampl <= 8'd11; end
  50. 8'b00100110 : begin luma <= 8'd109; phase <= 5'd17; ampl <= 8'd31; end
  51. 8'b00100111 : begin luma <= 8'd115; phase <= 5'd17; ampl <= 8'd50; end
  52. 8'b00101000 : begin luma <= 8'd111; phase <= 5'd29; ampl <= 8'd16; end
  53. 8'b00101001 : begin luma <= 8'd117; phase <= 5'd22; ampl <= 8'd13; end
  54. 8'b00101010 : begin luma <= 8'd124; phase <= 5'd19; ampl <= 8'd29; end
  55. 8'b00101011 : begin luma <= 8'd131; phase <= 5'd18; ampl <= 8'd48; end
  56. 8'b00101100 : begin luma <= 8'd126; phase <= 5'd28; ampl <= 8'd26; end
  57. 8'b00101101 : begin luma <= 8'd133; phase <= 5'd24; ampl <= 8'd22; end
  58. 8'b00101110 : begin luma <= 8'd140; phase <= 5'd21; ampl <= 8'd32; end
  59. 8'b00101111 : begin luma <= 8'd146; phase <= 5'd19; ampl <= 8'd49; end
  60. 8'b00110000 : begin luma <= 8'd142; phase <= 5'd28; ampl <= 8'd36; end
  61. 8'b00110001 : begin luma <= 8'd148; phase <= 5'd25; ampl <= 8'd32; end
  62. 8'b00110010 : begin luma <= 8'd155; phase <= 5'd22; ampl <= 8'd38; end
  63. 8'b00110011 : begin luma <= 8'd162; phase <= 5'd20; ampl <= 8'd52; end
  64. 8'b00110100 : begin luma <= 8'd157; phase <= 5'd27; ampl <= 8'd47; end
  65. 8'b00110101 : begin luma <= 8'd164; phase <= 5'd25; ampl <= 8'd42; end
  66. 8'b00110110 : begin luma <= 8'd170; phase <= 5'd23; ampl <= 8'd46; end
  67. 8'b00110111 : begin luma <= 8'd177; phase <= 5'd21; ampl <= 8'd57; end
  68. 8'b00111000 : begin luma <= 8'd172; phase <= 5'd27; ampl <= 8'd58; end
  69. 8'b00111001 : begin luma <= 8'd179; phase <= 5'd25; ampl <= 8'd53; end
  70. 8'b00111010 : begin luma <= 8'd186; phase <= 5'd24; ampl <= 8'd55; end
  71. 8'b00111011 : begin luma <= 8'd193; phase <= 5'd22; ampl <= 8'd63; end
  72. 8'b00111100 : begin luma <= 8'd188; phase <= 5'd27; ampl <= 8'd69; end
  73. 8'b00111101 : begin luma <= 8'd195; phase <= 5'd26; ampl <= 8'd64; end
  74. 8'b00111110 : begin luma <= 8'd201; phase <= 5'd24; ampl <= 8'd65; end
  75. 8'b00111111 : begin luma <= 8'd208; phase <= 5'd23; ampl <= 8'd71; end
  76. 8'b01000000 : begin luma <= 8'd88; phase <= 5'd7; ampl <= 8'd24; end
  77. 8'b01000001 : begin luma <= 8'd94; phase <= 5'd11; ampl <= 8'd23; end
  78. 8'b01000010 : begin luma <= 8'd101; phase <= 5'd14; ampl <= 8'd35; end
  79. 8'b01000011 : begin luma <= 8'd108; phase <= 5'd15; ampl <= 8'd52; end
  80. 8'b01000100 : begin luma <= 8'd103; phase <= 5'd4; ampl <= 8'd17; end
  81. 8'b01000101 : begin luma <= 8'd110; phase <= 5'd12; ampl <= 8'd12; end
  82. 8'b01000110 : begin luma <= 8'd117; phase <= 5'd15; ampl <= 8'd27; end
  83. 8'b01000111 : begin luma <= 8'd123; phase <= 5'd16; ampl <= 8'd46; end
  84. 8'b01001000 : begin luma <= 8'd119; phase <= 5'd1; ampl <= 8'd17; end
  85. 8'b01001001 : begin luma <= 8'd125; phase <= 5'd17; ampl <= 8'd3; end
  86. 8'b01001010 : begin luma <= 8'd132; phase <= 5'd17; ampl <= 8'd22; end
  87. 8'b01001011 : begin luma <= 8'd139; phase <= 5'd17; ampl <= 8'd42; end
  88. 8'b01001100 : begin luma <= 8'd134; phase <= 5'd31; ampl <= 8'd22; end
  89. 8'b01001101 : begin luma <= 8'd141; phase <= 5'd25; ampl <= 8'd11; end
  90. 8'b01001110 : begin luma <= 8'd147; phase <= 5'd20; ampl <= 8'd22; end
  91. 8'b01001111 : begin luma <= 8'd154; phase <= 5'd18; ampl <= 8'd40; end
  92. 8'b01010000 : begin luma <= 8'd149; phase <= 5'd29; ampl <= 8'd31; end
  93. 8'b01010001 : begin luma <= 8'd156; phase <= 5'd26; ampl <= 8'd21; end
  94. 8'b01010010 : begin luma <= 8'd163; phase <= 5'd22; ampl <= 8'd27; end
  95. 8'b01010011 : begin luma <= 8'd170; phase <= 5'd20; ampl <= 8'd41; end
  96. 8'b01010100 : begin luma <= 8'd165; phase <= 5'd29; ampl <= 8'd41; end
  97. 8'b01010101 : begin luma <= 8'd172; phase <= 5'd26; ampl <= 8'd32; end
  98. 8'b01010110 : begin luma <= 8'd178; phase <= 5'd23; ampl <= 8'd34; end
  99. 8'b01010111 : begin luma <= 8'd185; phase <= 5'd21; ampl <= 8'd45; end
  100. 8'b01011000 : begin luma <= 8'd180; phase <= 5'd28; ampl <= 8'd51; end
  101. 8'b01011001 : begin luma <= 8'd187; phase <= 5'd26; ampl <= 8'd43; end
  102. 8'b01011010 : begin luma <= 8'd194; phase <= 5'd24; ampl <= 8'd43; end
  103. 8'b01011011 : begin luma <= 8'd200; phase <= 5'd22; ampl <= 8'd51; end
  104. 8'b01011100 : begin luma <= 8'd196; phase <= 5'd28; ampl <= 8'd62; end
  105. 8'b01011101 : begin luma <= 8'd202; phase <= 5'd26; ampl <= 8'd54; end
  106. 8'b01011110 : begin luma <= 8'd209; phase <= 5'd24; ampl <= 8'd53; end
  107. 8'b01011111 : begin luma <= 8'd216; phase <= 5'd23; ampl <= 8'd59; end
  108. 8'b01100000 : begin luma <= 8'd96; phase <= 5'd7; ampl <= 8'd35; end
  109. 8'b01100001 : begin luma <= 8'd102; phase <= 5'd10; ampl <= 8'd32; end
  110. 8'b01100010 : begin luma <= 8'd109; phase <= 5'd12; ampl <= 8'd39; end
  111. 8'b01100011 : begin luma <= 8'd116; phase <= 5'd14; ampl <= 8'd53; end
  112. 8'b01100100 : begin luma <= 8'd111; phase <= 5'd5; ampl <= 8'd28; end
  113. 8'b01100101 : begin luma <= 8'd118; phase <= 5'd9; ampl <= 8'd21; end
  114. 8'b01100110 : begin luma <= 8'd124; phase <= 5'd13; ampl <= 8'd29; end
  115. 8'b01100111 : begin luma <= 8'd131; phase <= 5'd15; ampl <= 8'd45; end
  116. 8'b01101000 : begin luma <= 8'd126; phase <= 5'd3; ampl <= 8'd24; end
  117. 8'b01101001 : begin luma <= 8'd133; phase <= 5'd8; ampl <= 8'd11; end
  118. 8'b01101010 : begin luma <= 8'd140; phase <= 5'd14; ampl <= 8'd20; end
  119. 8'b01101011 : begin luma <= 8'd147; phase <= 5'd16; ampl <= 8'd38; end
  120. 8'b01101100 : begin luma <= 8'd142; phase <= 5'd1; ampl <= 8'd25; end
  121. 8'b01101101 : begin luma <= 8'd149; phase <= 5'd1; ampl <= 8'd6; end
  122. 8'b01101110 : begin luma <= 8'd155; phase <= 5'd17; ampl <= 8'd14; end
  123. 8'b01101111 : begin luma <= 8'd162; phase <= 5'd17; ampl <= 8'd33; end
  124. 8'b01110000 : begin luma <= 8'd157; phase <= 5'd31; ampl <= 8'd30; end
  125. 8'b01110001 : begin luma <= 8'd164; phase <= 5'd29; ampl <= 8'd14; end
  126. 8'b01110010 : begin luma <= 8'd171; phase <= 5'd21; ampl <= 8'd15; end
  127. 8'b01110011 : begin luma <= 8'd177; phase <= 5'd19; ampl <= 8'd32; end
  128. 8'b01110100 : begin luma <= 8'd173; phase <= 5'd30; ampl <= 8'd38; end
  129. 8'b01110101 : begin luma <= 8'd179; phase <= 5'd28; ampl <= 8'd24; end
  130. 8'b01110110 : begin luma <= 8'd186; phase <= 5'd23; ampl <= 8'd23; end
  131. 8'b01110111 : begin luma <= 8'd193; phase <= 5'd20; ampl <= 8'd34; end
  132. 8'b01111000 : begin luma <= 8'd188; phase <= 5'd29; ampl <= 8'd47; end
  133. 8'b01111001 : begin luma <= 8'd195; phase <= 5'd27; ampl <= 8'd35; end
  134. 8'b01111010 : begin luma <= 8'd201; phase <= 5'd24; ampl <= 8'd32; end
  135. 8'b01111011 : begin luma <= 8'd208; phase <= 5'd22; ampl <= 8'd40; end
  136. 8'b01111100 : begin luma <= 8'd203; phase <= 5'd29; ampl <= 8'd56; end
  137. 8'b01111101 : begin luma <= 8'd210; phase <= 5'd27; ampl <= 8'd46; end
  138. 8'b01111110 : begin luma <= 8'd217; phase <= 5'd25; ampl <= 8'd42; end
  139. 8'b01111111 : begin luma <= 8'd224; phase <= 5'd23; ampl <= 8'd47; end
  140. 8'b10000000 : begin luma <= 8'd103; phase <= 5'd7; ampl <= 8'd47; end
  141. 8'b10000001 : begin luma <= 8'd110; phase <= 5'd9; ampl <= 8'd42; end
  142. 8'b10000010 : begin luma <= 8'd117; phase <= 5'd11; ampl <= 8'd46; end
  143. 8'b10000011 : begin luma <= 8'd124; phase <= 5'd13; ampl <= 8'd56; end
  144. 8'b10000100 : begin luma <= 8'd119; phase <= 5'd6; ampl <= 8'd40; end
  145. 8'b10000101 : begin luma <= 8'd126; phase <= 5'd8; ampl <= 8'd32; end
  146. 8'b10000110 : begin luma <= 8'd132; phase <= 5'd11; ampl <= 8'd35; end
  147. 8'b10000111 : begin luma <= 8'd139; phase <= 5'd13; ampl <= 8'd47; end
  148. 8'b10001000 : begin luma <= 8'd134; phase <= 5'd4; ampl <= 8'd34; end
  149. 8'b10001001 : begin luma <= 8'd141; phase <= 5'd7; ampl <= 8'd23; end
  150. 8'b10001010 : begin luma <= 8'd148; phase <= 5'd12; ampl <= 8'd24; end
  151. 8'b10001011 : begin luma <= 8'd154; phase <= 5'd14; ampl <= 8'd38; end
  152. 8'b10001100 : begin luma <= 8'd150; phase <= 5'd3; ampl <= 8'd32; end
  153. 8'b10001101 : begin luma <= 8'd156; phase <= 5'd5; ampl <= 8'd15; end
  154. 8'b10001110 : begin luma <= 8'd163; phase <= 5'd13; ampl <= 8'd14; end
  155. 8'b10001111 : begin luma <= 8'd170; phase <= 5'd15; ampl <= 8'd30; end
  156. 8'b10010000 : begin luma <= 8'd165; phase <= 5'd1; ampl <= 8'd33; end
  157. 8'b10010001 : begin luma <= 8'd172; phase <= 5'd1; ampl <= 8'd14; end
  158. 8'b10010010 : begin luma <= 8'd178; phase <= 5'd17; ampl <= 8'd6; end
  159. 8'b10010011 : begin luma <= 8'd185; phase <= 5'd17; ampl <= 8'd25; end
  160. 8'b10010100 : begin luma <= 8'd180; phase <= 5'd0; ampl <= 8'd38; end
  161. 8'b10010101 : begin luma <= 8'd187; phase <= 5'd30; ampl <= 8'd20; end
  162. 8'b10010110 : begin luma <= 8'd194; phase <= 5'd24; ampl <= 8'd11; end
  163. 8'b10010111 : begin luma <= 8'd201; phase <= 5'd19; ampl <= 8'd24; end
  164. 8'b10011000 : begin luma <= 8'd196; phase <= 5'd31; ampl <= 8'd45; end
  165. 8'b10011001 : begin luma <= 8'd203; phase <= 5'd29; ampl <= 8'd29; end
  166. 8'b10011010 : begin luma <= 8'd209; phase <= 5'd25; ampl <= 8'd21; end
  167. 8'b10011011 : begin luma <= 8'd216; phase <= 5'd21; ampl <= 8'd28; end
  168. 8'b10011100 : begin luma <= 8'd211; phase <= 5'd30; ampl <= 8'd53; end
  169. 8'b10011101 : begin luma <= 8'd218; phase <= 5'd28; ampl <= 8'd39; end
  170. 8'b10011110 : begin luma <= 8'd225; phase <= 5'd26; ampl <= 8'd32; end
  171. 8'b10011111 : begin luma <= 8'd231; phase <= 5'd23; ampl <= 8'd35; end
  172. 8'b10100000 : begin luma <= 8'd111; phase <= 5'd7; ampl <= 8'd59; end
  173. 8'b10100001 : begin luma <= 8'd118; phase <= 5'd8; ampl <= 8'd53; end
  174. 8'b10100010 : begin luma <= 8'd125; phase <= 5'd10; ampl <= 8'd54; end
  175. 8'b10100011 : begin luma <= 8'd131; phase <= 5'd12; ampl <= 8'd62; end
  176. 8'b10100100 : begin luma <= 8'd127; phase <= 5'd6; ampl <= 8'd51; end
  177. 8'b10100101 : begin luma <= 8'd133; phase <= 5'd8; ampl <= 8'd43; end
  178. 8'b10100110 : begin luma <= 8'd140; phase <= 5'd10; ampl <= 8'd43; end
  179. 8'b10100111 : begin luma <= 8'd147; phase <= 5'd12; ampl <= 8'd51; end
  180. 8'b10101000 : begin luma <= 8'd142; phase <= 5'd5; ampl <= 8'd45; end
  181. 8'b10101001 : begin luma <= 8'd149; phase <= 5'd7; ampl <= 8'd34; end
  182. 8'b10101010 : begin luma <= 8'd155; phase <= 5'd10; ampl <= 8'd32; end
  183. 8'b10101011 : begin luma <= 8'd162; phase <= 5'd13; ampl <= 8'd41; end
  184. 8'b10101100 : begin luma <= 8'd157; phase <= 5'd4; ampl <= 8'd41; end
  185. 8'b10101101 : begin luma <= 8'd164; phase <= 5'd6; ampl <= 8'd27; end
  186. 8'b10101110 : begin luma <= 8'd171; phase <= 5'd10; ampl <= 8'd21; end
  187. 8'b10101111 : begin luma <= 8'd178; phase <= 5'd13; ampl <= 8'd31; end
  188. 8'b10110000 : begin luma <= 8'd173; phase <= 5'd2; ampl <= 8'd40; end
  189. 8'b10110001 : begin luma <= 8'd180; phase <= 5'd4; ampl <= 8'd22; end
  190. 8'b10110010 : begin luma <= 8'd186; phase <= 5'd9; ampl <= 8'd11; end
  191. 8'b10110011 : begin luma <= 8'd193; phase <= 5'd15; ampl <= 8'd22; end
  192. 8'b10110100 : begin luma <= 8'd188; phase <= 5'd1; ampl <= 8'd42; end
  193. 8'b10110101 : begin luma <= 8'd195; phase <= 5'd1; ampl <= 8'd22; end
  194. 8'b10110110 : begin luma <= 8'd202; phase <= 5'd1; ampl <= 8'd3; end
  195. 8'b10110111 : begin luma <= 8'd208; phase <= 5'd17; ampl <= 8'd17; end
  196. 8'b10111000 : begin luma <= 8'd204; phase <= 5'd0; ampl <= 8'd46; end
  197. 8'b10111001 : begin luma <= 8'd210; phase <= 5'd31; ampl <= 8'd27; end
  198. 8'b10111010 : begin luma <= 8'd217; phase <= 5'd28; ampl <= 8'd12; end
  199. 8'b10111011 : begin luma <= 8'd224; phase <= 5'd20; ampl <= 8'd17; end
  200. 8'b10111100 : begin luma <= 8'd219; phase <= 5'd31; ampl <= 8'd52; end
  201. 8'b10111101 : begin luma <= 8'd226; phase <= 5'd30; ampl <= 8'd35; end
  202. 8'b10111110 : begin luma <= 8'd233; phase <= 5'd27; ampl <= 8'd23; end
  203. 8'b10111111 : begin luma <= 8'd239; phase <= 5'd23; ampl <= 8'd24; end
  204. 8'b11000000 : begin luma <= 8'd119; phase <= 5'd7; ampl <= 8'd71; end
  205. 8'b11000001 : begin luma <= 8'd126; phase <= 5'd8; ampl <= 8'd65; end
  206. 8'b11000010 : begin luma <= 8'd132; phase <= 5'd10; ampl <= 8'd64; end
  207. 8'b11000011 : begin luma <= 8'd139; phase <= 5'd11; ampl <= 8'd69; end
  208. 8'b11000100 : begin luma <= 8'd134; phase <= 5'd6; ampl <= 8'd63; end
  209. 8'b11000101 : begin luma <= 8'd141; phase <= 5'd8; ampl <= 8'd55; end
  210. 8'b11000110 : begin luma <= 8'd148; phase <= 5'd9; ampl <= 8'd53; end
  211. 8'b11000111 : begin luma <= 8'd155; phase <= 5'd11; ampl <= 8'd58; end
  212. 8'b11001000 : begin luma <= 8'd150; phase <= 5'd5; ampl <= 8'd57; end
  213. 8'b11001001 : begin luma <= 8'd157; phase <= 5'd7; ampl <= 8'd46; end
  214. 8'b11001010 : begin luma <= 8'd163; phase <= 5'd9; ampl <= 8'd42; end
  215. 8'b11001011 : begin luma <= 8'd170; phase <= 5'd11; ampl <= 8'd47; end
  216. 8'b11001100 : begin luma <= 8'd165; phase <= 5'd4; ampl <= 8'd52; end
  217. 8'b11001101 : begin luma <= 8'd172; phase <= 5'd6; ampl <= 8'd38; end
  218. 8'b11001110 : begin luma <= 8'd179; phase <= 5'd9; ampl <= 8'd32; end
  219. 8'b11001111 : begin luma <= 8'd185; phase <= 5'd12; ampl <= 8'd36; end
  220. 8'b11010000 : begin luma <= 8'd181; phase <= 5'd3; ampl <= 8'd49; end
  221. 8'b11010001 : begin luma <= 8'd187; phase <= 5'd5; ampl <= 8'd32; end
  222. 8'b11010010 : begin luma <= 8'd194; phase <= 5'd8; ampl <= 8'd22; end
  223. 8'b11010011 : begin luma <= 8'd201; phase <= 5'd12; ampl <= 8'd26; end
  224. 8'b11010100 : begin luma <= 8'd196; phase <= 5'd2; ampl <= 8'd48; end
  225. 8'b11010101 : begin luma <= 8'd203; phase <= 5'd3; ampl <= 8'd29; end
  226. 8'b11010110 : begin luma <= 8'd210; phase <= 5'd6; ampl <= 8'd13; end
  227. 8'b11010111 : begin luma <= 8'd216; phase <= 5'd13; ampl <= 8'd16; end
  228. 8'b11011000 : begin luma <= 8'd212; phase <= 5'd1; ampl <= 8'd50; end
  229. 8'b11011001 : begin luma <= 8'd218; phase <= 5'd1; ampl <= 8'd31; end
  230. 8'b11011010 : begin luma <= 8'd225; phase <= 5'd1; ampl <= 8'd11; end
  231. 8'b11011011 : begin luma <= 8'd232; phase <= 5'd17; ampl <= 8'd8; end
  232. 8'b11011100 : begin luma <= 8'd227; phase <= 5'd0; ampl <= 8'd54; end
  233. 8'b11011101 : begin luma <= 8'd234; phase <= 5'd0; ampl <= 8'd35; end
  234. 8'b11011110 : begin luma <= 8'd240; phase <= 5'd30; ampl <= 8'd18; end
  235. 8'b11011111 : begin luma <= 8'd247; phase <= 5'd23; ampl <= 8'd12; end
  236. 8'b11100000 : begin luma <= 8'd127; phase <= 5'd7; ampl <= 8'd83; end
  237. 8'b11100001 : begin luma <= 8'd134; phase <= 5'd8; ampl <= 8'd76; end
  238. 8'b11100010 : begin luma <= 8'd140; phase <= 5'd9; ampl <= 8'd74; end
  239. 8'b11100011 : begin luma <= 8'd147; phase <= 5'd11; ampl <= 8'd77; end
  240. 8'b11100100 : begin luma <= 8'd142; phase <= 5'd6; ampl <= 8'd75; end
  241. 8'b11100101 : begin luma <= 8'd149; phase <= 5'd8; ampl <= 8'd67; end
  242. 8'b11100110 : begin luma <= 8'd156; phase <= 5'd9; ampl <= 8'd64; end
  243. 8'b11100111 : begin luma <= 8'd162; phase <= 5'd11; ampl <= 8'd66; end
  244. 8'b11101000 : begin luma <= 8'd158; phase <= 5'd6; ampl <= 8'd68; end
  245. 8'b11101001 : begin luma <= 8'd164; phase <= 5'd7; ampl <= 8'd58; end
  246. 8'b11101010 : begin luma <= 8'd171; phase <= 5'd9; ampl <= 8'd53; end
  247. 8'b11101011 : begin luma <= 8'd178; phase <= 5'd11; ampl <= 8'd55; end
  248. 8'b11101100 : begin luma <= 8'd173; phase <= 5'd5; ampl <= 8'd62; end
  249. 8'b11101101 : begin luma <= 8'd180; phase <= 5'd6; ampl <= 8'd50; end
  250. 8'b11101110 : begin luma <= 8'd187; phase <= 5'd8; ampl <= 8'd43; end
  251. 8'b11101111 : begin luma <= 8'd193; phase <= 5'd11; ampl <= 8'd44; end
  252. 8'b11110000 : begin luma <= 8'd189; phase <= 5'd4; ampl <= 8'd58; end
  253. 8'b11110001 : begin luma <= 8'd195; phase <= 5'd5; ampl <= 8'd43; end
  254. 8'b11110010 : begin luma <= 8'd202; phase <= 5'd8; ampl <= 8'd33; end
  255. 8'b11110011 : begin luma <= 8'd209; phase <= 5'd11; ampl <= 8'd33; end
  256. 8'b11110100 : begin luma <= 8'd204; phase <= 5'd3; ampl <= 8'd56; end
  257. 8'b11110101 : begin luma <= 8'd211; phase <= 5'd4; ampl <= 8'd39; end
  258. 8'b11110110 : begin luma <= 8'd217; phase <= 5'd6; ampl <= 8'd25; end
  259. 8'b11110111 : begin luma <= 8'd224; phase <= 5'd11; ampl <= 8'd22; end
  260. 8'b11111000 : begin luma <= 8'd219; phase <= 5'd2; ampl <= 8'd56; end
  261. 8'b11111001 : begin luma <= 8'd226; phase <= 5'd3; ampl <= 8'd37; end
  262. 8'b11111010 : begin luma <= 8'd233; phase <= 5'd4; ampl <= 8'd19; end
  263. 8'b11111011 : begin luma <= 8'd240; phase <= 5'd11; ampl <= 8'd11; end
  264. 8'b11111100 : begin luma <= 8'd235; phase <= 5'd1; ampl <= 8'd58; end
  265. 8'b11111101 : begin luma <= 8'd242; phase <= 5'd1; ampl <= 8'd39; end
  266. 8'b11111110 : begin luma <= 8'd248; phase <= 5'd1; ampl <= 8'd19; end
  267. 8'b11111111 : begin luma <= 8'd255; phase <= 5'd11; ampl <= 8'd0; end
  268. endcase
  269. endmodule