Samson Posted October 23, 2018 Share Posted October 23, 2018 So I am working on a bit multiplier project How can I input two 16-bit inputs with only having 16 switches on the board? Is there a way after inputting the first 16-bit I can toggle the switches again to input the second 16-bit? Thanks so much. Link to comment Share on other sites More sharing options...
hamster Posted October 23, 2018 Share Posted October 23, 2018 My suggestion would be to use one of the push-buttons as a "Store switch value in X", and another as "Store switch value in Y". You could maybe use the other buttons as "Show me X" and "Show me Y", and the center button as "Show me X*Y" - with no buttons pushed it could just show you the value of the switches. Link to comment Share on other sites More sharing options...
D@n Posted October 23, 2018 Share Posted October 23, 2018 @Samson, I love @hamster's solution! Don't forget, though, if you use buttons you'll want to use at least a 2FF synchronizer and (depending on your purpose), you may want to debounce them as well. Dan Link to comment Share on other sites More sharing options...
jpeyron Posted October 23, 2018 Share Posted October 23, 2018 Hi @Samson, Here is the basys 3's resource center. Here is the Basys 3 General I/O Demo that uses switches, buttons(with debouncer) , seven segment display, usb host(mouse) and the VGA in VHDL. This Demo should be a good reference for @hamster and @D@n project suggestions. cheers, Jon Link to comment Share on other sites More sharing options...
Question
Samson
So I am working on a bit multiplier project
How can I input two 16-bit inputs with only having 16 switches on the board? Is there a way after inputting the first 16-bit I can toggle the switches again to input the second 16-bit?
Thanks so much.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.