summaryrefslogtreecommitdiff
path: root/45/CH11/EX11.8/example_11_8.sce
blob: 8b9656cec70114bd8fb14f0f879d6bef6767c45a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//example 11.8
// this program requires 
//kmp3abx.sci
//noof.sci
//noof0.sci 
//above three functions are first execute before executing this program 
clc;
disp('State table through karnaugh map'); // state table through  kmap 
disp('     00      01      11      10');
disp('a    a''      a''      b        b');
disp('b    a       b''      b''       b'''); 
disp('If we represent current state a as x = 0 and b as x =1 the noutput X can be expressed as ');
j=[0 0  1 1 ; 0 1 1 1]; 
J= kmap3abx(j); // finding the minimized expresion using 3-variable kmap
disp('The minimised expression J');
disp(J); // displaying the minimized expression