.. _IP:arith_prefix_or: PoC.arith.prefix_or ################### .. only:: html .. |gh-src| image:: /_static/logos/GitHub-Mark-32px.png :scale: 40 :target: https://github.com/VLSI-EDA/PoC/blob/master/src/arith/arith_prefix_or.vhdl :alt: Source Code on GitHub .. |gh-tb| image:: /_static/logos/GitHub-Mark-32px.png :scale: 40 :target: https://github.com/VLSI-EDA/PoC/blob/master/tb/arith/arith_prefix_or_tb.vhdl :alt: Source Code on GitHub .. sidebar:: GitHub Links * |gh-src| :pocsrc:`Sourcecode ` * |gh-tb| :poctb:`Testbench ` 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. .. rubric:: Entity Declaration: .. literalinclude:: ../../../src/arith/arith_prefix_or.vhdl :language: vhdl :tab-width: 2 :linenos: :lines: 43-51 .. only:: latex Source file: :pocsrc:`arith/arith_prefix_or.vhdl `