1 / 22

Logic Functions with Various Properties

Logic Functions with Various Properties. Self-Dual Functions. The dual of a function f(x 1 ,x 2 , …, x n ) is  f(  x 1 ,  x 2 , …,  x n ), denoted by f d . f d is obtained first by replacing each x i with  x i and then by complementing the function. Example xy+zw ==> (x+y)(z+w)

lowell
Download Presentation

Logic Functions with Various Properties

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Logic Functions withVarious Properties

  2. Self-Dual Functions • The dual of a function f(x1,x2, …, xn) is f(x1,x2, …, xn), denoted by fd. fd is obtained first by replacing each xi with xi and then by complementing the function. • Example xy+zw ==> (x+y)(z+w) • Exchange AND and OR (from De Morgan’s theorem) • A self dual function is a function such that f = fd. Logic Functions with Various Properties

  3. How many self-dual functions? Logic Functions with Various Properties

  4. How many self-dual functions? • Theorem 1 There are 22n-1 different self-dual functions of n variables • Theorem 2 Let f be a self-dual function of n variables, and let |f| be the number of inputs a for which f(a) = 1, then |f| = 2n-1 • Theorem 3 A function which is obtained by assigning a self-dual function to a variable of a self-dual function is also a self-dual function • A self-anti-dual function is a function such that f(x1,x2, …, xn) = f(x1,x2, …, xn) Logic Functions with Various Properties

  5. Monotone Increasing Functions • Let a and b be Boolean vectors. If f satisfies f(a) ≥ f(b), for any vectors such that a ≥b, then f is a monotone increasing function of a positive function. • Theorem 4 f is monotone increasing function iff f is a constant or represented by an SOP without complemented literals • Proof Logic Functions with Various Properties

  6. Monotone Increasing Functions • The monotone increasing functions with two variables are: 0, x, y, xy, x + y, and 1 • Enumeration in general is not simple • Theorem 5 A function that is obtained by assigning a monotone increasing function to an arbitrary variable of a monotone increasing function is also a monotone increasing function. • Proof Logic Functions with Various Properties

  7. Monotone Decreasing Functions • Let a and b be Boolean vectors. If f satisfies f(a) ≤ f(b), for any vectors such that a ≥ b, then f is a monotone decreasing function of a negative function. • Theorem 6 f is monotone decreasing function iff f is a constant or represented by an SOP with complemented literals only. A monotone decreasing function is obtained by complementing a monotone increasing function. Logic Functions with Various Properties

  8. Unate Functions • If a function f is a constant or represented by an SOP using either uncomplemented or complemented literals for each variable, then f is a unate function. • How many 2 input variable functions are unate? • Is the function f(x,y) = x + xy unate? Logic Functions with Various Properties

  9. Linear Functions • If a logic function f is represented as f = a0 a1x1  a2x2  …  anxn where ai = 0 or 1, then f is a linear function. • How many linear function of n variables exist? • Theorem 8 The function that is obtained by assigning a linear function to an arbitrary variable of a linear function is also a linear function. • Proof Logic Functions with Various Properties

  10. Linear Functions • Theorem 9 A linear function is either a self-dual function or a self-anti-dual function • Proof Logic Functions with Various Properties

  11. Symmetric Function • A function is a totally symmetric function if any permutation of the variables in f does not change the function. (also called symmetric function) • If in a function f(x1,…, xi, …, xj, … xn) is equal to f(x1,…, xj, …, xj, … xn), then f is symmetric with respect to xj and xi. If any permutation of subset S of the variables does not change the function f, then f is a partially symmetric function. Logic Functions with Various Properties

  12. Symmetric Function • The elementary symmetric functions of n variables are: (see def. 5.10 page 99) • Theorem 10 An arbitrary n-variable symmetric function f is uniquely represented by elementary symmetric functions • Theorem 11 Let f and g be totally symmetric functions of n variables. The f + g, fg, f  g, and f are also totally symmetric functions. • Theorem 12 There are ?? symmetric functions of n variables. Logic Functions with Various Properties

  13. Threshold Functions • Let (w1, w2, … wn) be an n-tuple of real numbers called weights, and t be a real number called thresholds. A threshold function is a function such that: • Theorem 13 A threshold function is a unate function. • A majority function is a threshold function, where n = 2m + 1, t = m + 1 and w1 = w2 = … wn = 1 • Theorem 14 A majority function is a totally symmetric function, monotone increasing, and self dual. Logic Functions with Various Properties

  14. Universal Set of Logic Functions • Let F = {f1, f2, … fm} be a set of logic functions. If an arbitrary function is realized by a loop-free combinational network using the logic elements that realize functions fi (i = 1,2, …, m), the F is universal. • A function such that f(0,0, … ,0) = 0 is a 0-preserving function. A function such that f(1,1, … ,1) = 1 is a 1-preserving function. • Theorem 15The function that is obtained by assigning a 0-preserving function to an arbitrary variable of a 0-preserving function is also a 0-preserving function. • Theorem 16The function that is obtained by assigning a 1-preserving function to an arbitrary variable of a 1-preserving function is also a 1-preserving function. Logic Functions with Various Properties

  15. Universal Set of Logic Functions • Theorem 17 Let M0 be the set of 0-preserving functions M1 be the set of 1-preserving functions M2 be the set self-dual functions M3 be the set of monotone increasing functions M4 be the set of linear functions Then, the set of functions F is universal iff F  Mi (i = 0,1, 2, 3, 4). Logic Functions with Various Properties

  16. Universal Set of Logic Functions (Proof of necessity) Let f = xy,then f  Mi (i =0,1,2,3,4). Each of the sets Mi is closed under the composition of the function. That is, assigning a function in Mi to a variable of Mi, also produces a function in Mi. So if F  Mi, then the function such that f  Mi cannot be realized. Thus F is not universal. Lemma 1 The complement x is realized by any non-monotone increasing function and constants 0 and 1 Example f(x,y,z) = xy + z Logic Functions with Various Properties

  17. Universal Set of Logic Functions Lemma 2 The AND and OR functions are realized by any non-linear function, complement, and constants 0 and 1 Logic Functions with Various Properties

  18. Universal Set of Logic Functions Lemma 3 Constants 0 and 1are realized by a non-self-dual function and the complement. Example f(x,y) = xy Logic Functions with Various Properties

  19. Universal Set of Logic Functions Lemma 4 If f is non 1-preserving and non 0-preserving, then the complement can be realized from f. Lemma 5 If f is 1-preserving and non 0-preserving, then the constant 1 can be realized from f. Lemma 6 If f is 0-preserving and non 1-preserving, then the constant 0 can be realized from f. Theorem 17 follows from the 6 Lemmas Logic Functions with Various Properties

  20. Universal Set of Logic Functions Example Let f1 = x y, f2 = xy, f3 = x y, f4 = x  y, f5 = 1, f6 = 0, f7 = xy  yz zx, f8 = x  y z, f9 = x, f10 = xy, and f11 = x. Show table with functional properties. Show minimal universal sets. Logic Functions with Various Properties

  21. Equivalence Classes of Logic functions • For a given logic function f, if a function g is derived from f by the combination of the following three operations, then the function is NPN-equivalent to f • Negation of some variables in f. • Permutation of some variables in f. • Negation of f. This relation is an NPN-equivalence relation. The set of functions that are NPN-equivalent to the given function f forms an equivalence class, and f is a representative function of the equivalence class. Logic Functions with Various Properties

  22. Number of Equivalence Classes Logic Functions with Various Properties

More Related