Rimon Selim
Newbie level 2
- Joined
- Nov 23, 2014
- Messages
- 2
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 36
I want to design a circuit with sequential coding to count the number of leading zeros, must be sequential.
Example 00001101 has 4. Example 00000001 has 7.
Thank you for the help.
Example 00001101 has 4. Example 00000001 has 7.
Thank you for the help.
Code VHDL - [expand] 1 2 3 4 5 6 7 8 LIBRARY ieee ; USE ire . std_logic_1164 . all; -- ----------------------- ENTITY leading_zeros IS PORT ( data : IN STD_LOGIC_VECTOR ( 7 DOWNTO 0); zeros : OUT INTEGER range 0 to 8); END ENTITY ; -- -----------------------
Last edited by a moderator: