UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer akhilahmed
Observer
213 Views
Registered: ‎10-21-2018

How to create a mux with select signal controlled via software on ZCU104

Hello,

I am creating a project wherein I need to insert a MUX (2:1) to select between 2 signals. I want to control the MUX select signal through software running on Microblaze. 

1. I do not find a MUX IP in the IP catalog in Vivado. How do I work around this?

2. For the select signal to be controlled through software, what is the simplest/easiest way to do this?

Thank you!

0 Kudos
1 Reply
Xilinx Employee
Xilinx Employee
168 Views
Registered: ‎06-21-2018

Re: How to create a mux with select signal controlled via software on ZCU104

Hi akhilahmed,

1. You can create a mux in Verilog with just a statement: 

assign mux_out = (sel) ? din_1 : din_0;

You can also use an 'if' or a 'case' to infer one: http://www.asic-world.com/examples/verilog/mux.html

2. You can use a pin of the EMIO bank to connect to the select pin on the PL

Thanks,
Andres

0 Kudos