Skip to content

Add generic demultiplexer component (demux_generic)#3906

Merged
andypugh merged 1 commit intoLinuxCNC:masterfrom
hansu:add-component-demux_generic
Apr 6, 2026
Merged

Add generic demultiplexer component (demux_generic)#3906
andypugh merged 1 commit intoLinuxCNC:masterfrom
hansu:add-component-demux_generic

Conversation

@hansu
Copy link
Copy Markdown
Member

@hansu hansu commented Apr 6, 2026

Based on Andys mux_generic component, just changed minimal to have a demultiplexer.
So I am not sure what to insert as author...

Further I added two variants of a symbol using just unicode characters, so also displayable in the console. Which one you guys like better?


            demux-gen.NN.sel-bit-00 ───────────────────┐
                                ... ─────────────────┐ │
            demux-gen.NN.sel-bit-MM ───────────────┐ │ │
               demux-gen.NN.sel-int ─────────────┐ │ │ │
                                         ┌───────┴─┴─┴─┴───────┐
                                         │          / o─────   ├───── demux-gen.NN.out-[bit/float/s32/u32]-01
demux-gen.NN.in-[bit/float/s32/u32] ─────┤   ─────o   o─────   ├───── ...
                                         │            o─────   ├───── demux-gen.NN.out-[bit/float/s32/u32]-MM
     demux-gen.NN.suppress-no-input ─────┤                     │
           demux-gen.NN.debounce-us ─────┤                     │
                                         └─────────────────────┘


                                         ┌─────────────────────┐
demux-gen.NN.in-[bit/float/s32/u32] ─────┤                     │
                                         │                     │
            demux-gen.NN.sel-bit-00 ─────┤                     ├───── demux-gen.NN.out-[bit/float/s32/u32]-01
                                ... ─────┤    demux_generic    ├───── ...
            demux-gen.NN.sel-bit-MM ─────┤                     ├───── demux-gen.NN.out-[bit/float/s32/u32]-MM
               demux-gen.NN.sel-int ─────┤                     │
     demux-gen.NN.suppress-no-input ─────┤                     │
           demux-gen.NN.debounce-us ─────┤                     │
                                         └─────────────────────┘

@andypugh
Copy link
Copy Markdown
Collaborator

andypugh commented Apr 6, 2026

I think the top image is clearer.

@hansu
Copy link
Copy Markdown
Member Author

hansu commented Apr 6, 2026

Ok. And the author?

@andypugh
Copy link
Copy Markdown
Collaborator

andypugh commented Apr 6, 2026

I would say change the module_author, but leave the copyright shared.

Based on mux_generic. Any number of pins, any data type.
@hansu hansu force-pushed the add-component-demux_generic branch from a9b2408 to 04c3a6b Compare April 6, 2026 15:03
@hansu
Copy link
Copy Markdown
Member Author

hansu commented Apr 6, 2026

Ok, done

@andypugh andypugh merged commit dbb1094 into LinuxCNC:master Apr 6, 2026
14 checks passed
grandixximo pushed a commit to grandixximo/linuxcnc that referenced this pull request Apr 7, 2026
The demux_generic component added in LinuxCNC#3906 missed adding its
generated man page to docs/man/.gitignore.
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

Successfully merging this pull request may close these issues.

2 participants