Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Thank you. After some trail & error I came up with the following code:
library ieee;
use ieee.std_logic_1164.all;
use ieee.math_real.all;
entity top is
port (
clk : in std_logic;
reset : in std_logic;
input : in std_logic_vector(7 downto 0); -- 7 = width - 1...
Suppose I have an entity that has a generic that sets the width of one input. Now I want to have an output that has the minimum width to address each of the input bits.
A 12-bit example follows:
entity priority_encoder is
port (
input : in std_logic_vector(11 downto 0)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.