diff options
Diffstat (limited to '45/CH4/EX4.1/exmple_4_1.sce')
-rwxr-xr-x | 45/CH4/EX4.1/exmple_4_1.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/45/CH4/EX4.1/exmple_4_1.sce b/45/CH4/EX4.1/exmple_4_1.sce new file mode 100755 index 000000000..c3bbd9141 --- /dev/null +++ b/45/CH4/EX4.1/exmple_4_1.sce @@ -0,0 +1,10 @@ +//example 4.1 +clc; +clear; +disp('Logic equation for 2-to-1 Multiplexer :') +printf(' Y = A''D0 + AD1\n'); +disp('Logic equation for 4-to-1 Multiplexer :') +printf(' Y = A''B''D0 + A''BD1 + AB''D2 + ABD3\n'); +disp('This can be rewritten as,') +printf(' Y= A''(B''D0 + BD1) + A(B''D2 + BD3)\n'); +disp('Compare this with equation of 2-to-1 mux. We need two 2-to-1 multiplexer to realize the bracketed terms where B serves as select input. The output of these two multiplexers can be sent to a third multiplexer as data inputs where A serves as select input and we get the 4-to-1 multiplexer.');
\ No newline at end of file |