Exercise
https://texercises.com/exercise/comparator-gates/
Question
Solution
Short
Video
\(\LaTeX\)
No explanation / solution video to this exercise has yet been created.

Visit our YouTube-Channel to see solutions to other exercises.
Don't forget to subscribe to our channel, like the videos and leave comments!
Exercise:
Construct the comparator gates less greater equal from only textttAND textttOR and textttNOT gates.

Solution:
center circuitikzscale. % A_greater: A AND NOT B draw nodeand port and ; draw -. nodenot port scale. not ; nodeanchoreast at not.in B; nodeanchoreast at and.in A; nodeanchorsouth at and.out A_greater; % A_equal: OR of two AND gates draw nodeor port or ; draw --. nodeand port scale. and ; draw -. nodeand port scale. and ; draw --. nodenot port scale. not ; draw -. nodenot port scale. not ; nodeanchoreast at and.in overlineA; nodeanchoreast at and.in overlineB; nodeanchoreast at and.in A; nodeanchoreast at and.in B; nodeanchorwest at or.out A_equal; % Connections for A_equal NOT gates draw not.out -- and.in ; draw not.out -- and.in ; nodeanchoreast at not.in A; nodeanchoreast at not.in B; draw and.out -- ++. |- or.in ; draw and.out -- ++. |- or.in ; % A_less: NOT A AND B draw - nodeand port and ; draw --. nodenot port scale. not ; nodeanchoreast at not.in A; nodeanchoreast at and.in B; nodeanchorsouth at and.out A_less; draw not.out -- and.in ; circuitikz center array|c|c|c|c|c| hline A & B & textA_greater & textA_equal & textA_less hline & & & & & & & & & & & & & & & & hline array
Meta Information
\(\LaTeX\)-Code
Exercise:
Construct the comparator gates less greater equal from only textttAND textttOR and textttNOT gates.

Solution:
center circuitikzscale. % A_greater: A AND NOT B draw nodeand port and ; draw -. nodenot port scale. not ; nodeanchoreast at not.in B; nodeanchoreast at and.in A; nodeanchorsouth at and.out A_greater; % A_equal: OR of two AND gates draw nodeor port or ; draw --. nodeand port scale. and ; draw -. nodeand port scale. and ; draw --. nodenot port scale. not ; draw -. nodenot port scale. not ; nodeanchoreast at and.in overlineA; nodeanchoreast at and.in overlineB; nodeanchoreast at and.in A; nodeanchoreast at and.in B; nodeanchorwest at or.out A_equal; % Connections for A_equal NOT gates draw not.out -- and.in ; draw not.out -- and.in ; nodeanchoreast at not.in A; nodeanchoreast at not.in B; draw and.out -- ++. |- or.in ; draw and.out -- ++. |- or.in ; % A_less: NOT A AND B draw - nodeand port and ; draw --. nodenot port scale. not ; nodeanchoreast at not.in A; nodeanchoreast at and.in B; nodeanchorsouth at and.out A_less; draw not.out -- and.in ; circuitikz center array|c|c|c|c|c| hline A & B & textA_greater & textA_equal & textA_less hline & & & & & & & & & & & & & & & & hline array
Contained in these collections:

Attributes & Decorations
Tags
comparator, digitalelektronik, elektronik, gate, physik, vergleichsoperator
Content image
Difficulty
(1, default)
Points
3 (default)
Language
ENG (English)
Type
Calculative / Quantity
Creator uz
Decoration
File
Link