Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting a Multiplexer #1357

Open
WikipediasTop100 opened this issue Nov 1, 2024 · 3 comments
Open

Connecting a Multiplexer #1357

WikipediasTop100 opened this issue Nov 1, 2024 · 3 comments

Comments

@WikipediasTop100
Copy link

Is this right way to set up a Multiplexer on Digital?
Screenshot 2024-10-31 210646

@mengstr
Copy link

mengstr commented Nov 1, 2024

Does it work? If it doesn't it's not the right way. :-)

One issue here is that you're not keeping busses the same "width". Look at the multiplexer. It has a 4-bit wide control input, so whatever you connect it to must also have 4 bits and now it's connected to a splitter that has (what it looks like) 8 output bits.

@WikipediasTop100
Copy link
Author

Does it work? If it doesn't it's not the right way. :-)

One issue here is that you're not keeping busses the same "width". Look at the multiplexer. It has a 4-bit wide control input, so whatever you connect it to must also have 4 bits and now it's connected to a splitter that has (what it looks like) 8 output bits.

Does that mean I should get the values of the multiplexer to have 4 digits and connect the multiplexer to another multiplexer that has 8 outputs?

@mengstr
Copy link

mengstr commented Nov 1, 2024

A multiplexer has three types of signals - Inputs, Output and Control. The one that you are using is having 1 output and 16 inputs.

To be able to select which one of the 16 inputs you need to give it a vale between 0 and 15 in the control pin. This requires 4 bits. So you need to connect a "bus" with the width of 4 bits to it.

One way of doing that is to convert four separate 1-bit signals into a 4-bit bus using a "splitter" - pretty much just as you did there. But it seems like your splitter is outputting 8 bits (it says 0-7 on it in your screenshot). Just change it to output 4 bits and it should work.
Screenshot 2024-11-01 at 22 51 17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants