cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer
Observer
338 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
Highlighted
Xilinx Employee
Xilinx Employee
293 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