Presentation is loading. Please wait.

Presentation is loading. Please wait.

Digital System Design. Objective Distinguish between Two worlds Understand the Properties digital system.

Similar presentations


Presentation on theme: "Digital System Design. Objective Distinguish between Two worlds Understand the Properties digital system."— Presentation transcript:

1 Digital System Design

2 Objective Distinguish between Two worlds Understand the Properties digital system

3 Analog vs. Digital Analog: Real world Digital: Computer world.

4 Analog VS Digital Analogue electronics: systems with a continuously variable signal Digital electronics: discrete bands of analog levels, rather than continuous range.

5 Examples an aneroid barometer uses the angular position of a needle as the signal to convey the information of changes in atmospheric pressure. An hour of music can be stored on a compact disc using about 6 billion binary digits.

6 Digital System A digital system is a combination of devices designed to manipulate data in digital form.

7 Advantage of digital system The noise-immunity of digital systems permits data to be stored and retrieved without degradation Greater accuracy or precision Easier to design Easier information storage Programmability Speed Economical

8 Limitation of digital technology The real world is mainly analog In portable or battery-powered systems digital circuits use more energy Quantization errors cliff effect

9 Overcome the limitation Real world data to digital Process digital data Convert into analog form

10 Digital logic Design and analysis of digital system Interconnection among digital components and modules Engineering as a problem solver

11 Digital Circuits A digital circuit is often constructed from small electronic circuits called logic gates that can be used to create combinational logic. Each logic gate represents a function of boolean logic..

12 A logic gate is an arrangement of electrically controlled switches, better known as transistors The output of a logic gate is an electrical flow or voltage, that can, in turn, control more logic gates Integrated circuits are the least expensive way to make logic gates in large volumes Another form of digital circuit is constructed from PLD for small volume When the volumes are medium to large, microcontroller is programmed to make an embedded system. These are usually programmed by software engineers.

13 IC s SSI in 1958, no.of tran<10 MSI in 1960 no.of tran<100 LSI in 1970 no.of tran<10000 VLSI in 1980 no.of tran<100,000

14 Information representation  Elementary storage units inside computer are electronic switches. Each switch holds one of two states: on (1) or off (0).  We use a bit (binary digit), 0 or 1, to represent the state. ON OFF

15 Information representation  Storage units can be grouped together to cater for larger range of numbers. Example: 2 switches to represent 4 values. 0 (00) 1 (01) 2 (10) 3 (11)

16 Information representation  In general, N bits can represent 2 N different values.  For M values, bits are needed. 1 bit  represents up to 2 values (0 or 1) 2 bits  rep. up to 4 values (00, 01, 10 or 11) 3 bits  rep. up to 8 values (000, 001, 010. …, 110, 111) 4 bits  rep. up to 16 values (0000, 0001, 0010, …, 1111) 32 values  requires 5 bits 64 values  requires 6 bits 1024 values  requires 10 bits 40 values  requires 6 bits 100 values  requires 7 bits

17 Positional Notations Decimal number system, symbols = { 0, 1, 2, 3, …, 9 } Position is important Example:(7594) 10 = (7x10 3 ) + (5x10 2 ) + (9x10 1 ) + (4x10 0 ) In general, (a n a n-1 … a 0 ) 10 = (a n x 10 n ) + (a n-1 x 10 n-1 ) + … + (a 0 x 10 0 ) (2.75) 10 = (2 x 10 0 ) + (7 x 10 -1 ) + (5 x 10 -2 ) In general, (a n a n-1 … a 0. f 1 f 2 … f m ) 10 = (a n x 10 n ) + (a n- 1 x10 n-1 ) + … + (a 0 x 10 0 ) + (f 1 x 10 -1 ) + (f 2 x 10 -2 ) + … + (f m x 10 -m )

18 Other Number Systems  Binary (base 2): weights in powers-of-2. Binary digits (bits): 0,1.  Octal (base 8): weights in powers-of-8. Octal digits: 0,1,2,3,4,5,6,7  Hexadecimal (base 16): weights in powers-of- 16. Hexadecimal digits: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F

19 Base-R to Decimal Conversion  (1101.101) 2 = 1  2 3 + 1  2 2 + 1  2 0 + 1  2 -1 + 1  2 -3 = 8 + 4 + 1 + 0.5 + 0.125 = (13.625) 10  (572.6) 8 = 5  8 2 + 7  8 1 + 2  8 0 + 6  8 -1 = 320 + 56 + 2 + 0.75 = (378.75) 10  (2A.8) 16 = 2  16 1 + 10  16 0 + 8  16 -1 = 32 + 10 + 0.5 = (42.5) 10  (341.24) 5 = 3  5 2 + 4  5 1 + 1  5 0 + 2  5 -1 + 4  5 -2 = 75 + 20 + 1 + 0.4 + 0.16 = (96.56) 10

20 Decimal-to-Binary Conversion  Method 1: Sum-of-Weights Method  Method 2:  Repeated Division-by-2 Method (for whole numbers)  Repeated Multiplication-by-2 Method (for fractions)

21 Sum-of-Weights Method  Determine the set of binary weights whose sum is equal to the decimal number. (9) 10 = 8 + 1 = 2 3 + 2 0 = (1001) 2 (18) 10 = 16 + 2 = 2 4 + 2 1 = (10010) 2 (58) 10 = 32 + 16 + 8 + 2 = 2 5 + 2 4 + 2 3 + 2 1 = (111010) 2 (0.625) 10 = 0.5 + 0.125 = 2 -1 + 2 -3 = (0.101) 2

22 Repeated Division-by-2 Method  To convert a whole number to binary, use successive division by 2 until the quotient is 0. The remainders form the answer, with the first remainder as the least significant bit (LSB) and the last as the most significant bit (MSB). (43) 10 = (101011) 2

23 Repeated Multiplication-by-2 Method  To convert decimal fractions to binary, repeated multiplication by 2 is used, until the fractional product is 0 (or until the desired number of decimal places). The carried digits, or carries, produce the answer, with the first carry as the MSB, and the last as the LSB. (0.3125) 10 = (.0101) 2

24 Conversion between Decimal and other Bases  Decimal to base-R  whole numbers: repeated division-by-R  fractions: repeated multiplication-by-R

25 Conversion between Bases In general, conversion between bases can be done via decimal:Base-2Base-3 Base-4DecimalBase-4 … ….Base-R

26 Binary-Octal/Hexadecimal Conversion  Binary  Octal: Partition in groups of 3 (10 111 011 001. 101 110) 2 = (2731.56) 8  Octal  Binary: reverse (2731.56) 8 = (10 111 011 001. 101 110) 2  Binary  Hexadecimal: Partition in groups of 4 (101 1101 1001. 1011 1000) 2 = (5D9.B8) 16  Hexadecimal  Binary: reverse (5D9.B8) 16 = (101 1101 1001. 1011 1000) 2


Download ppt "Digital System Design. Objective Distinguish between Two worlds Understand the Properties digital system."

Similar presentations


Ads by Google