| Home -- Hierarchy -- Packages -- Entities -- Instantiations -- Sources |
Synthesizable Rotating Priority Encoder
Defined in VHDL/priority_rot.vhd
Author: John E. Kent
Version: 0.1 from 30th May 2010
priority_rot is a rotating priority encoder written in VHDL.
| library ieee | |
| use ieee.std_logic_1164.all | |
| use ieee.std_logic_arith.all | |
| use ieee.std_logic_unsigned.all | |
| library unisim | |
| use unisim.vcomponents.all |
| WIDTH | integer | := 8 |
| clk | in | std_logic |
| rst | in | std_logic |
| input | in | std_logic_vector(WIDTH-1 downto 0) |
| output | out | std_logic_vector(log2(WIDTH)-1 downto 0) |
| valid | out | std_logic |