-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rcon_zero_row.vhd
36 lines (24 loc) · 881 Bytes
/
Rcon_zero_row.vhd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
library ieee;
use ieee.std_logic_1164.all;
entity Rcon_zero_row is
port (input : in std_logic_vector(3 downto 0);
output : out std_logic_vector(7 downto 0));
end Rcon_zero_row;
architecture Rcon_zero_row_architecture of Rcon_zero_row is
begin
substitute: process(input) begin
case input is
when "0000" => output <= X"01";
when "0001" => output <= X"02";
when "0010" => output <= X"04";
when "0011" => output <= X"08";
when "0100" => output <= X"10";
when "0101" => output <= X"20";
when "0110" => output <= X"40";
when "0111" => output <= X"80";
when "1000" => output <= X"1B";
when "1001" => output <= X"36";
when others => output <= X"01";
end case;
end process;
end Rcon_zero_row_architecture;