PoC.arith.Prefix_And
Prefix AND computation:
y(i) <= '1' when x(i downto 0) = (i downto 0 => '1') else '0';
This implementation uses carry chains for wider implementations.
Entity Declaration:
1 port (
2 x : in std_logic_vector(BITS-1 downto 0);
3 y : out std_logic_vector(BITS-1 downto 0)
4 );
5end entity;
6
7
8architecture rtl of arith_Prefix_And is
9begin