Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- display_string(0 to 15) <=
- (
- -- Line 1 (display_string(0 to 15)) A I K E N G R A Y B C D
- 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");
- -- Line 2 (display_string(16 to 31))
- display_string(20) <= x"20";
- display_string(21) <= x"20"; -- 2 Leerzeichen zwischen aiken und gray-zahl
- display_string(26) <= x"20"; -- ein Leerzeichen zwischen gray und bcd
- display_string(31) <= x"20"; -- ein Leerzeichen am Ende
- PROCESS (s_aiken_zahl)
- BEGIN
- CASE (s_aiken_zahl) IS
- -- 0
- WHEN "0000" =>
- display_string(16 to 19) <= ( x"30",x"30",x"30",x"30" );
- -- 1
- WHEN "0001" =>
- display_string(16 to 19) <= ( x"30",x"30",x"30",x"31" );
- -- 2
- WHEN "0010" =>
- display_string(16 to 19) <= ( x"30",x"30",x"31",x"30" );
- -- 3
- WHEN "0011" =>
- display_string(16 to 19) <= ( x"30",x"30",x"31",x"31" );
- -- 4
- WHEN "0100" =>
- display_string(16 to 19) <= ( x"30",x"31",x"30",x"30" );
- -- 5
- WHEN "1011" =>
- display_string(16 to 19) <= ( x"31",x"30",x"31",x"31" );
- -- 6
- WHEN "1100" =>
- display_string(16 to 19) <= ( x"31",x"31",x"30",x"30" );
- -- 7
- WHEN "1101" =>
- display_string(16 to 19) <= ( x"31",x"31",x"30",x"31" );
- -- 8
- WHEN "1110" =>
- display_string(16 to 19) <= ( x"31",x"31",x"31",x"30" );
- -- 9
- WHEN "1111" =>
- display_string(16 to 19) <= ( x"31",x"31",x"31",x"31" );
- -- OTHERS
- WHEN OTHERS =>
- display_string(16 to 19) <= ( x"45",x"52",x"52",x"20" );
- END CASE;
- END PROCESS;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement