Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Newbie
rmarcel
Posts: 1
Registered: ‎07-02-2012
0

Mux 2:1in 6-LUT

Hi,

 

If in Virtex-5 we have 6-LUT with the 2 outputs O6 and O5, and is possible to have 2 different function of 5 inputs each.

How implement 2 multiplexer 2:1 in one 6-LUT?

Expert Contributor
bassman59
Posts: 4,653
Registered: ‎02-25-2008
0

Re: Mux 2:1in 6-LUT


rmarcel wrote:

If in Virtex-5 we have 6-LUT with the 2 outputs O6 and O5, and is possible to have 2 different function of 5 inputs each.

How implement 2 multiplexer 2:1 in one 6-LUT?


 

    signal muxout : std_logic;

    signal foo    : std_logic;

    signal bar    : std_logic;

    signal select : std_logic; 

 

        .... 

 

    muxout <= foo when select = '1' else bar;

 

You're welcome.


----------------------------------------------------------------
Yes, I do this for a living.
Expert Contributor
rcingham
Posts: 2,010
Registered: ‎09-09-2010
0

Re: Mux 2:1in 6-LUT


bassman59 wrote:

rmarcel wrote:

If in Virtex-5 we have 6-LUT with the 2 outputs O6 and O5, and is possible to have 2 different function of 5 inputs each.

How implement 2 multiplexer 2:1 in one 6-LUT?


 

    signal muxout : std_logic;

    signal foo    : std_logic;

    signal bar    : std_logic;

    signal select : std_logic; 

 

        .... 

 

    muxout <= foo when select = '1' else bar;

 

You're welcome.


More likely that the following would infer 2 multiplexers like what the OP wants:

 

    signal muxout : std_logic_logic(1 downto 0);

    signal foo    : std_logic_logic(1 downto 0);

    signal bar    : std_logic_logic(1 downto 0);

    signal select : std_logic; 

 

        .... 

 

    muxout <= foo when select = '1' else bar;

 

Except that the the multiplexers aren't independent, which may be what (s)he wants. Why one would really care in a normal industrial design is another matter.

 

 



------------------------------------------
"If it don't work in simulation, it won't work on the board."
Moderator
kren
Posts: 159
Registered: ‎08-21-2007
0

Re: Mux 2:1in 6-LUT

It it possible, as the two multiplexer share 1-bit select signal.