Thu Yet Trinh Tks

29
DIGITAL LOGIC DESIGN (CE_403) CHAPTER 2: Storage Components (part_1) 1 SVTH: Trương Văn Tuấn GVHD: Hà Lê Hoài Trung

description

thuyết trình thiết kế số đầu chương 2

Transcript of Thu Yet Trinh Tks

Page 1: Thu Yet Trinh Tks

DIGITAL LOGIC DESIGN(CE_403)

CHAPTER 2:

Storage Components(part_1)

1

SVTH: Trương Văn TuấnGVHD: Hà Lê Hoài Trung

Page 2: Thu Yet Trinh Tks

2

Storage components

Storage components store data and perform some simple operation.

Storage components include:• Registers.• Counters.• Register files.• Queues.• Stack.

Page 3: Thu Yet Trinh Tks

3

Registers.•Registers are bit wise extensions of Flip-

Flops.•Registers store one data word.

Page 4: Thu Yet Trinh Tks

4

Registers.•Cho giản đồ xung sau, vẽ giản đồ xung

output của FF-D

Page 5: Thu Yet Trinh Tks

5

Registers with asynchronous•Asynchronous setting and resetting is

independent of clock signal.•Synchronous inputs are used to initialize

register.

set and reset

Page 6: Thu Yet Trinh Tks

6

Registers with parallel load•Parallel load register can hold data

indefinitely.•It can also load new data when load signal

is 1.

Page 7: Thu Yet Trinh Tks

7

Bài tập thanh ghi – Thanh ghi dịchThiết kế 1 thanh ghi 4 bit có 2 tín hiệu

nạp dùng để điều khiển việc nạp dữ liệu từ 2 nguồn khác nhau.

Thiết kế thanh ghi 16 bit có khả năng làm 2 chức năng sau:Nạp dữ liệu mớiHoán đổi byte trọng số thấp và byte trọng

số cao(8 bit thấp lên 8 bit cao)

Page 8: Thu Yet Trinh Tks

8

registers (shift – right)•Serial-in, parallel-out register converts

serial data stream.

Serial-in, parallel-out

Page 9: Thu Yet Trinh Tks

9

Shift registers with parallel load

Page 10: Thu Yet Trinh Tks

10

4-bit binary counter•Counters increment (decrement) their

content when enabled.

Page 11: Thu Yet Trinh Tks

114-bit up/down binary counter

Page 12: Thu Yet Trinh Tks

12

4-bit up/down counter• This counter is sometimes called pre-settable

counter.

with parallel load

Page 13: Thu Yet Trinh Tks

13

Bài tập bộ đếmThiết kế mạch đếm nhị phân chỉ đếm lên:

Số chẵn: 0,2,4,6,8,0,…Số lẻ 1,3,5,7,1,…

Thiết kế các cổng luận lý sao cho mạch đếm đếm đến các giá trị sao:71415

Page 14: Thu Yet Trinh Tks

14

BCD counters•Up sequence: 0,1,2,3,4,5,6,7,8,9,0,…•Down sequence: 0,9,8,7,6,5,4,3,2,1,0,9,…

• Up counter loads ‘0’ when counter content is 9(1001).• Up/Down counter loads ‘0’ when counter content is 9(1001) and direction bit D=0.• Up/Down counter loads ‘9’ when counter content is 0(0000) and direction bit D=1.

Page 15: Thu Yet Trinh Tks

15Asynchronous countersEach FF in Synchronous counters changes its

output at the same time.

Each FF in Asynchronous counters change values at different times.

Advantage of asynchronous counters is simple and low cost (less gates).

Weakness of asynchronous counters is longer delays in comparison with synchronous counters

Page 16: Thu Yet Trinh Tks

164-bit asynchronous up counter

Page 17: Thu Yet Trinh Tks

174-bit asynchronous up counter

Page 18: Thu Yet Trinh Tks

18

Propagation Delay in Ripple CountersRipple counters are simple-requiring the fewest

components to produce a given operationCumulative propagation delay can cause problems at

high frequencies.

The counter will perform accurately when the period of clock cycle must be longer than the total propagation delay of it.

Page 19: Thu Yet Trinh Tks

19

Propagation Delay in Ripple Counters

Page 20: Thu Yet Trinh Tks

208-bit mixed-mode up counter

Mixed-mode counter consists of:(1) asynchronous counters connected synchronous

slices.

Page 21: Thu Yet Trinh Tks

218-bit mixed-mode up counter

Mixed-mode counter consists of:(2) Synchronous counters connected asynchronous

slices.

Page 22: Thu Yet Trinh Tks

22

Register-fileRegister-file is used as fast temporary

storage

Page 23: Thu Yet Trinh Tks

23

Register-file withThis register-file is used for reading two operands

and writing one result in each clock cycle.

1 write port and 2 read ports

Page 24: Thu Yet Trinh Tks

24

Random Access Memory (RAM)

Page 25: Thu Yet Trinh Tks

25

RAM organizationRam memory cells can be static or dynamic.Static RAM’s do not lose data with time.Dynamic RAM’s must be refreshed.

Page 26: Thu Yet Trinh Tks

26

RAM timing

Page 27: Thu Yet Trinh Tks

27

16Kx32 RAM design with 16Kx8 RAM’s(to obtain wider bit widths)

Page 28: Thu Yet Trinh Tks

28

64Kx8 RAM design with 16Kx8 RAM’s(to obtain a larger memory)

Page 29: Thu Yet Trinh Tks

29

Bài tập thiết kế bộ nhớThiết kế bộ nhớ:

256Kx8RAM từ các RAM 256K x 1 RAM256Kx8RAM từ các RAM 64Kx 8 RAM