Vim li cas thiaj hu ua AND rooj vag?
Vim li cas thiaj hu ua AND rooj vag?

Video: Vim li cas thiaj hu ua AND rooj vag?

Video: Vim li cas thiaj hu ua AND rooj vag?
Video: vim li cas tsob no peb hmoob thiaj muab hu ua lauj vag 2/4/2021 2024, Kaum ib hlis
Anonim

THIAB rooj vag yog li npe vim tias yog 0 hu ua "false" thiab 1 yog hu ua "true," ua rooj vag ua tib yam li qhov kev xav "thiab"tus neeg ua haujlwm.

Ib yam li ntawd ib tug yuav nug, dab tsi thiab lub rooj vag txhais li cas?

THIAB rooj vag yog ib qho yooj yim digital logic rooj vag uas siv cov laj thawj sib txuas - nws coj raws li cov lus tseeb ntawm sab xis. HIGH tso zis (1) tsuas yog yog tias tag nrho cov inputs mus rau THIAB gate yog HIGH (1).

Tsis tas li ntawd, koj txhais li cas los ntawm logic rooj vag? Hauv electronics, a logic rooj vag yog ib qho zoo tshaj plaws orphysical ntaus ntawv siv lub Boolean muaj nuj nqi; uas yog, itperforms a logical kev ua haujlwm ntawm ib lossis ntau dua binary inputsand tsim ib qho binary tso zis.

Yog li ntawd, lub rooj vag OR ua haujlwm li cas?

Hauv electronics, muaj logic rooj vag uas ua haujlwm nyob rau tib yam, tsis sib xws thiab nws hu ua TSIS rooj vag los yog inverter. Tsis zoo li THIAB thiab OR rooj vag , nws tsuas muaj ib qho kev tawm tswv yim thiab ib qho tawm. Cov zis yog raws nraim qhov opposite ntawm lub tswv yim, yog li yog hais tias tus input yog 0, cov zis yog 1 thiab viceversa.

EX OR Gate yog dab tsi?

0. XOR rooj vag (Qee lub sij hawm EOR, los yog EXOR thiab pronounced li Tshwj xeeb LOS YOG) yog qhov kev xav digital rooj vag uas muab qhov tseeb (1 lossis HIGH) tso tawm thaum tus naj npawb ntawm qhov tseeb inputsis khib. Ib XOR rooj vag siv ib tshwj xeeb los yog; uas yog, qhov tseeb tso zis tshwm sim yog tias ib qho, thiab tsuas yog ib qho, ntawm cov khoom nkag mus rau rooj vag yog muaj tseeb.

Pom zoo: