Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- library IEEE;
- use IEEE.STD_LOGIC_1164.all;
- ------------------------------------------------------------
- entity cw09z1_df2 is
- port (x : in std_logic_vector (1 to 5);
- y : out std_logic);
- end cw09z1_df2;
- ------------------------------------------------------------
- -- architektura df2 - styl przepływowy (DataFlow)
- -- opis za pomocą tablicy (tabela prawdy funkcji f5)
- -- z wykorzystaniem instrukcji "with - select"
- architecture df2 of cw09z1_df2 is
- begin
- with x select
- y <= '1' when "00000", -- A
- '0' when "00001", -- Ą
- '0' when "00010", -- C
- '0' when "00011", -- B
- '0' when "00100", -- Ę
- '1' when "00101", -- E
- '0' when "00110", -- Ć
- '0' when "00111", -- D
- '0' when "01000", -- F
- '0' when "01001", -- G
- '1' when "01010", -- I
- '0' when "01011", -- H
- '0' when "01100", -- Ł
- '0' when "01101", -- L
- '1' when "01110", -- J
- '1' when "01111", -- K
- '0' when "10000", -- Ś
- '0' when "10001", -- T
- '1' when "10010", -- W
- '0' when "10011", -- U
- '0' when "10100", -- Ż
- '0' when "10101", -- Ź
- '0' when "10110", -- Y
- '0' when "10111", -- Z
- '0' when "11000", -- M
- '1' when "11001", -- N
- '1' when "11010", -- O
- '0' when "11011", -- Ń
- '1' when "11100", -- S
- '1' when "11101", -- R
- '0' when "11110", -- Ó
- '0' when "11111", -- P
- 'X' when others;
- end df2;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement