blob: 89bf24b6b2c29ee187164acc8001fc32dbb17603 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
library ieee;
use ieee.STD_LOGIC_1164.all;
entity alias01 is
port(
i : in std_logic_vector(7 downto 0);
o : out std_logic
);
end entity;
architecture rtl of alias01 is
alias i_alias : std_logic_vector(7 downto 2) is i(6 downto 1);
alias lower : std_logic_vector(3 downto 0) is i_alias(6 downto 3);
begin
o <= '1' when lower = "0000" else '0';
end architecture;
|