Introduction to Logic Circuit Design (University of Utah) - Shannon Expansion Reduction (Lecture 14)
Overview
The lecture presents Shannon expansion as a way to turn a full binary decision tree into a more compact binary decision diagram (BDD). It shows how fixing a variable at 0 and 1 creates two cofactors, then explains BDD reduction by merging equal leaves, merging isomorphic nodes, and removing redundant tests.
Key takeaways
- Shannon expansion decomposes a Boolean function into two cofactors for a selected variable: one with that variable fixed to 0 and one fixed to 1.
- A full binary decision tree can implement a truth table using multiplexer decisions, but it may duplicate identical subfunctions and therefore use more nodes than necessary.
- A BDD shares repeated subfunctions, so different paths can converge on the same node while preserving the circuit's behavior.
- Equivalent BDD leaves can be merged when they carry the same constant; nonterminal nodes can be merged only when they test the same variable and have identical 0 and 1 children.
- A BDD test is redundant when both branches lead to the same child, allowing the test node to be removed.
- Reducing a BDD from the leaves upward helps expose duplicate subgraphs and redundant tests, though the reduction rules can be applied in different orders.
Chapters
- A truth table can be represented as a binary decision tree by testing input variables along 0 and 1 branches.
- Each decision node corresponds to a multiplexer controlled by the variable being tested.
- The complete tree implements any Boolean circuit, but its fixed structure can use unnecessary multiplexers.
- For a Boolean function f, fixing variable xi to 0 or 1 produces two cofactors.
- Shannon expansion expresses f as xi times the cofactor for xi = 1, plus the complement of xi times the cofactor for xi = 0.
- Each cofactor no longer depends on the variable fixed during that expansion.
- When xi = 1, the xi term selects the cofactor evaluated at 1 and the other term becomes 0.
- When xi = 0, the complemented-variable term selects the cofactor evaluated at 0.
- Applying the identity to any input variable preserves the function while reorganizing its logic.
- The worked algebraic example expands a function around x1 and separates its x1 = 0 and x1 = 1 cases.
- Terms independent of x1 remain unchanged in the corresponding cofactors.
- The resulting form groups behavior by the value of x1, preparing the function for a decision diagram.
- The class applies the same cofactor procedure to x2 in a practice example.
- Expansions on different variables may look different but still represent the same Boolean function.
- Repeated expansion creates a hierarchy of decisions, with each stage reducing the remaining variables in a cofactor.
- The example expands first on x1, then on x2, and finally on x3 to construct a decision diagram.
- The resulting cofactors, labeled G1 through G4 in the example, become subgraphs beneath the variable tests.
- Identical subfunctions can point to the same graph structure rather than being drawn repeatedly.
- A binary decision diagram uses fewer multiplexer nodes than a complete decision tree when subfunctions can be shared.
- Variable circles are nodes, the 0 and 1 connections are edges, and terminal constants are leaves.
- The diagram represents the same function as the full tree while allowing repeated structure to be shared.
- Leaves with the same constant value can be represented by one shared terminal node.
- The example notes that multiple leaves labeled 1 can be replaced by a single 1 leaf with several incoming edges.
- Merging terminals removes duplicate endpoints without changing any 0 or 1 path's result.
- Two nodes are isomorphic only if they test the same variable and their corresponding 0 and 1 edges lead to the same children.
- Matching variable labels alone is not sufficient; both outgoing connections must also match.
- After merging duplicate nodes, incoming edges are redirected to the retained node while preserving their 0 and 1 labels.
- A variable test is redundant when both outgoing edges lead to the same child.
- The redundant node can be removed and its incoming edge connected directly to that child.
- Reduction is often easiest from the leaves upward, although the order of applying the rules does not affect the result.
- The class checks for remaining equivalent nodes and redundant tests before treating the diagram as fully simplified.
- The lecture concludes the combination-logic material covered so far and previews the transition to sequential circuits.
- The closing course announcements identify the midterm scope as material through the current chapter, including Appendix B.
Transcript excerpt
0:42 are 13 and we hope to finish up chapter the combination logic circuits and we start chapter 5 sequential circuit something that we haven talked about it So today we g see one very important theory called Shanon expansion a tool that helps us to reduce the binary decision tree so we can have a more optimized binary decision diagram and then we go further and we apply some techniques to even reduce that channon expansion so all of that is to have more optimized dead and
1:35 lab upay 119 pm lab and 3 are graded so don't forget for grade request from the time that grades are announc if you need anything make you apply the last slide and vide are uploaded any questions regarding the logistics all right so if you remember last lecture we talked about our binary decision tree and we said that multiplexers are universal gate that means that we can create any circuits
2:27 multiplex and this was the idea that was the idea of binary decision if remember we said that we can map any truth table to this binary decision so binary decision isn't anything other than representation another representation of a circuit so we have seen two table one representation of circuit we have seen car anotherentation representations we can transfer them we can map one to another this is another representation as you can see it has always this structure we have if we have three variables first we start with one of them we have a and b sorry we have zer and one and then for each of the
3:15 variables we have two path to go we have talked about that and this is how we can map sample to this binary decision basically instead of having m0 to m7
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, MEDAL-Research.