Continue to Site

Welcome to EDAboard.com

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.

Problem in designing multiplexer by vhdl

Status
Not open for further replies.

Sourabh16

Newbie level 1
Joined
Apr 12, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,286
Hello friends
I am having a problem in designing a multiplexer with "n" select inputs ,2^n data inputs and 1 data o/p using behavorial modelling.
can you help me with that

Regards
Sourabh
 

Code:
signal select : integer range 0 to 2**n-1;

type mux_t is array(0 to 2**n-1) of std_logic_vector(7 downto 0);
signal choices : mux_t;


--assuming select lines are std_logic_vector(n-1 downto 0);
select <= to_integer( unsigned( sel_in) );
output <= choices(select);

--mux done
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top