digital system and binary numbers, Study notes of Computer science

emu university chapter 1 digital system&binary numbers

Typology: Study notes

2022/2023

Uploaded on 04/26/2023

umut-kiziltoprak
umut-kiziltoprak 🇹🇷

1 document

1 / 102

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
INTRODUCTION TO L OGIC D ES I GN
Chapter 1
Di gi tal Sy ste ms and Bin ar y N u mb ers
g ü r t a ç y e m i ş ç i o ğ l u
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download digital system and binary numbers and more Study notes Computer science in PDF only on Docsity!

I N T R O D U C T I O N T O L O G I C D E S I G N

Chapter 1

D i g i t a l S y s t e m s a n d B i n a r y N u m b e r s

g ü r t a ç y e m i ş ç i o ğ l u

O U T L I N E O F C H A P T E R 1

6 O c t o b e r , 2 0 1 6 I N T R O D U C T I O N T O L O G I C D E S I G N

Digital Systems

Binary Numbers

Number-base Conversions

Octal & Hexadecimal Numbers

Complements Signed Binary Numbers

Binary Codes

Binary Storage & Registers

Binary Logic

Binary Arithmetic

D I G I TA L S Y S T E M S

  • Digital age and information age
  • Digital computers
    • General purposes
    • Many scientific, industrial and commercial applications
  • Digital systems
    • Telephone switching exchanges
    • Digital camera
    • Electronic calculators, PDA's
    • Digital TV
  • Discrete information-processing systems
    • Manipulate discrete elements of information
    • For example, {1, 2, 3, …} and {A, B, C, …}… 6 O c t o b e r , 2 0 1 6 I N T R O D U C T I O N T O L O G I C D E S I G N

D I G I TA L S I G N A L

  • The physical quantities or signals

can assume only discrete values.

  • Greater accuracy

A N A L O G S I G N A L

  • The physical quantities or signals may vary continuously over a specified range.

6 O c t o b e r , 2 0 1 6 D I G I T A L I N T E G R A T E D C I R C U I T D E S I G N

D I G I TA L S Y S T E M S

t

X(t)

t

X(t)

D I G I TA L S Y S T E M S

  • Binary values are represented by values or ranges of values of

physical quantities.

6 O c t o b e r , 2 0 1 6 I N T R O D U C T I O N T O L O G I C D E S I G N

t

V(t)

Logic 1

Logic 0

undefine

1.2 BINARY NUMBERS

Octal Number System

  • Base = 8
    • 8 digits
    • { 0, 1, 2, 3, 4, 5, 6, 7}
  • Weights
    • Weight = ( Base) Position
  • Magnitude
    • Sum of “ Digit x Weight
  • Formal Notation

6 O c t o b e r , 2 0 1 6 I N T R O D U C T I O N T O L O G I C D E S I G N

B I N A R Y N U M B E R S

82 81 80 8 -1^8 -

5x64 1x8 2x1 7x1/8 4x1/

o 2 x B^2 + o 1 x B^1 + o 0 x B^0 + o-1 x B-1+o-2 x B-

Hexadecimal Number System

  • Base = 16
    • 16 digits { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F}
  • Weights
    • Weight = ( Base) Position
  • Magnitude
    • Sum of “ bit x Weight
  • Formal Notation

6 O c t o b e r , 2 0 1 6 I N T R O D U C T I O N T O L O G I C D E S I G N

B I N A R Y N U M B E R S

1 E 5 7 A
162 161 160 16 -1^16 -

1x256 14x16 5x1 7x1/16 10x1/

H 2 x B^2 + H 1 x B^1 + H 0 x B^0 +H-1 x B-1+H-2x B- (458.4765625) 10 (1E5.7A) 16

n 2 n 0 20 = 1 21 = 2 22 = 3 23 = 4 24 = 5 25 = 6 26 = 7 27 =

n 2 n 8 28 = 9 29 = 10 210 = 11 211 = 12 212 = 20 220 =1M 30 230 =1G 40 240 =1T

6 O c t o b e r , 2 0 1 6 D I G I T A L I N T E G R A T E D C I R C U I T D E S I G N

B I N A R Y N U M B E R S

The power of 2

1.3 BINARY

ARITHMETIC

B I N A R Y A R I T H M E T I C

6 O c t o b e r , 2 0 1 6 I N T R O D U C T I O N T O L O G I C D E S I G N

ADDITION

Binary Addition - Column Addition

B I N A R Y A R I T H M E T I C

6 O c t o b e r , 2 0 1 6 I N T R O D U C T I O N T O L O G I C D E S I G N

SUBTRACTION

Binary Subtraction - Borrow a “Base” when needed

1.4 NUMBER-BASE

CONVERSION

N U M B E R BA S E CO N V E R S I O N

6 O c t o b e r , 2 0 1 6 I N T R O D U C T I O N T O L O G I C D E S I G N

Decimal (Base 10)

Octal (Base 8)

Binary (Base 2)

Hexadecimal (Base 16)

Evaluate Magnitude