diff options
Diffstat (limited to '3860/CH3/EX3.21/EX3_21.sce')
-rw-r--r-- | 3860/CH3/EX3.21/EX3_21.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/3860/CH3/EX3.21/EX3_21.sce b/3860/CH3/EX3.21/EX3_21.sce new file mode 100644 index 000000000..fdfd72f43 --- /dev/null +++ b/3860/CH3/EX3.21/EX3_21.sce @@ -0,0 +1,12 @@ +//Example 3.21: Reduce expression using k-map with dont cares.
+clc; //clears the window
+clear; //clears all existing variables
+//Mapping the expression//
+disp(' W''X'' W''X WX WX'' ')
+disp('Y''Z'' X 1 1 ')
+disp('YZ'' X 1 1 ')
+disp('YZ X 1 1')
+disp('YZ'' X ')// the k-map is displayed.
+disp('g1 = x''z + w''yz + w''y''z'' + wxy''')
+disp('g2 = x''z + w''yz + xy''z'' + wxy''')
+disp('g3 = x''z + w''yz + xy''z'' + wy''z')
|