PoC.arith.prefix_or

Prefix OR computation: y(i) <= '0' when x(i downto 0) = (i downto 0 => '0') else '1'; This implementation uses carry chains for wider implementations.

Entity Declaration:

1  generic (
2    N : positive
3  );
4  port (
5    x : in  std_logic_vector(N-1 downto 0);
6    y : out std_logic_vector(N-1 downto 0)
7  );
8end entity;