BME303_lecture5_1 - BME303 Intro. to Computing Logical Op...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
BME303 Intro. to Computing 1 Logical Op on bit vectors “7” = segments: a, b, c Microprocessor 0 0 0 0 0 1 1 1 Register (0x0D)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
BME303 Intro. to Computing 2 Logical Operations • TRUE=1, FALSE=0 • Bitwise operation A B A AND B 0 0 0 0 1 0 1 0 0 1 1 1 A B A OR B 0 0 0 0 1 1 1 0 1 1 1 1 A NOT A 0 1 1 0 AND OR NOT
Background image of page 2
BME303 Intro. to Computing 3 Examples of Logical Operations •AND – useful for clearing bits • AND with zero = 0 • AND with one = no change •OR – useful for setting bits • OR with zero = no change • OR with one = 1 •NOT – unary operation -- one argument – flips every bit 11000101 AND 00001111 00000101 11000101 OR 00001111 11001111 NOT 11000101 00111010
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
BME303 Intro. to Computing 4 Boolean Algebra • A N AND B = NOT (A AND B) • A N OR B = NOT (A OR B) • Z = f(A,B,C) = (A AND B) OR NOT(C) • Z = f(A,B,C) = AB + C’
Background image of page 4
BME303 Intro. to Computing 5 Basic Laws of Boolean Algebra Y X Y X Z X Y X Z Y X Z Y X Z Y X X Y Y X ) ( ) ( ) ( Y X Y X Z X Y X Z Y X Z Y X Z Y X X Y Y X ) ( ) ( ) ( ) ( s DeMorgan' ve Distributi e Associativ e Commutativ
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/24/2010 for the course BME 303 taught by Professor Ren during the Fall '08 term at University of Texas at Austin.

Page1 / 21

BME303_lecture5_1 - BME303 Intro. to Computing Logical Op...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online