On 03/14/2017 07:15 PM, Gene Heskett wrote: > Greetings everybody; > > In doing this rewrite, I find a need for a reverse s32 mux, where I can > take a single s32 value and steer it to one target or another. There is a select8 standard component. If you really need 32 outputs, you could use select8 as your base, expand to 32-wide, and then have it pass the input to the selected output, instead of sending just a constant 1 to the selected output. The value input and outputs need to be float instead of bits. select8 is all of 19 lines of code, it should be fairly easy to see how it works.
here's a link to the source code : http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=src/hal/components/select8.comp Jon ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
