Good evening!
I want to share with you universal version of voting logic MooN. It’s based on simple boolean logic and easy to scale for any dimension.
For example see version for 6 inputs.
You can use any of MooN output as per your voting need (also you can use output 4oo6 as indication of that inputs with 1 state more than 0 state).
AR is user Function Block. It swipes signals when 1 and 0 must change order.
Basic idea is sort signals with state 1 to “bottom”, i.e. seperate 1 and 0 into two groups.
For example, when input is [1,1,0,1,0,0] output of MooN should be [0,0,0,1,1,1].
Best regards Kairat Abdukarimov.