Advertisement
Guest User

Untitled

a guest
Dec 16th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. display_string(0 to 15) <=
  2. (
  3. -- Line 1 (display_string(0 to 15)) A I K E N G R A Y B C D
  4. x"41",x"49",x"4B",x"45",x"4E",x"20",x"47",x"52",x"41",x"59",x"20",x"42",x"43",x"44",x"20",x"20");
  5.  
  6. -- Line 2 (display_string(16 to 31))
  7. display_string(20) <= x"20";
  8. display_string(21) <= x"20"; -- 2 Leerzeichen zwischen aiken und gray-zahl
  9. display_string(26) <= x"20"; -- ein Leerzeichen zwischen gray und bcd
  10. display_string(31) <= x"20"; -- ein Leerzeichen am Ende
  11.  
  12.  
  13. PROCESS (s_aiken_zahl)
  14. BEGIN
  15.  
  16. CASE (s_aiken_zahl) IS
  17.  
  18. -- 0
  19. WHEN "0000" =>
  20. display_string(16 to 19) <= ( x"30",x"30",x"30",x"30" );
  21.  
  22. -- 1
  23. WHEN "0001" =>
  24. display_string(16 to 19) <= ( x"30",x"30",x"30",x"31" );
  25.  
  26. -- 2
  27. WHEN "0010" =>
  28. display_string(16 to 19) <= ( x"30",x"30",x"31",x"30" );
  29.  
  30. -- 3
  31. WHEN "0011" =>
  32. display_string(16 to 19) <= ( x"30",x"30",x"31",x"31" );
  33.  
  34. -- 4
  35. WHEN "0100" =>
  36. display_string(16 to 19) <= ( x"30",x"31",x"30",x"30" );
  37.  
  38. -- 5
  39. WHEN "1011" =>
  40. display_string(16 to 19) <= ( x"31",x"30",x"31",x"31" );
  41.  
  42. -- 6
  43. WHEN "1100" =>
  44. display_string(16 to 19) <= ( x"31",x"31",x"30",x"30" );
  45.  
  46. -- 7
  47. WHEN "1101" =>
  48. display_string(16 to 19) <= ( x"31",x"31",x"30",x"31" );
  49.  
  50. -- 8
  51. WHEN "1110" =>
  52. display_string(16 to 19) <= ( x"31",x"31",x"31",x"30" );
  53.  
  54. -- 9
  55. WHEN "1111" =>
  56. display_string(16 to 19) <= ( x"31",x"31",x"31",x"31" );
  57.  
  58. -- OTHERS
  59. WHEN OTHERS =>
  60. display_string(16 to 19) <= ( x"45",x"52",x"52",x"20" );
  61.  
  62. END CASE;
  63. END PROCESS;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement