This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

4 out of 5 Logic

Hi All,

I am implementing 2/3 logic as follows:
Three inputs a,b,c.
d will hold 2/3 value.

d=(a&b)|(b&c)|(c&d);

whether there is any combitation for 4/5 simillar to this?

a,b,c,d,e are 5 inputs then 4 out of 5 logic will be based on the following 10 combinations.

ab,ac,ad,ae
bc,bd,be,
cd,ce,
de

whether there is any simple way to find 4/5 logic...using |,& and !

Parents
  • Are you really happy with the size of that code?

    What will happen if your constant 5 is updated to 70?
    What will happen if the packet size is updated from 12 to 32768 bytes?

    Should the code size grow in this way with the size of the constants?

    Dod you consider reading the previous posts?

    Did you understand the previous posts?

    Have you considered what "four-out-of-five" means?
    What would be the difference relative to "one-out-of-five"?
    In relation to "not-one-out-of-five"?
    How do you implement AND logic with just OR and NOT?
    How do you implement OR logic with just AND and NOT?
    What other advantages can be taken if not limited to the logic levels 0 and 1?

Reply
  • Are you really happy with the size of that code?

    What will happen if your constant 5 is updated to 70?
    What will happen if the packet size is updated from 12 to 32768 bytes?

    Should the code size grow in this way with the size of the constants?

    Dod you consider reading the previous posts?

    Did you understand the previous posts?

    Have you considered what "four-out-of-five" means?
    What would be the difference relative to "one-out-of-five"?
    In relation to "not-one-out-of-five"?
    How do you implement AND logic with just OR and NOT?
    How do you implement OR logic with just AND and NOT?
    What other advantages can be taken if not limited to the logic levels 0 and 1?

Children