Tải bản đầy đủ (.pdf) (6 trang)

Tìm hiễu bộ vi xử lý phần 7 pptx

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (241.19 KB, 6 trang )

07-09-2009 Trần Thiên Thanh 43
Ch1 III Chip Vi xử lý µP
 M

t chu k

l

nh có th

chia thành 2
bướ
c:
 Hi

n nay,
ngườ
i ta dùng
k

thu
ật đừơng ố
ng có
ngh
ĩ
a là 2 chu k

trên
ho
ạt độ
ng cùng 1 th



i
điểm để
ti
ế
t ki

m chu k

bus.
07-09-2009 Trần Thiên Thanh 44
Ch1 III Chip Vi xử lý µP
 Bộ giải mã lệnh:
 Nhận lệnh từ IR
 Thông dịch (diễn dịch) các
lệnh được nhận vào µP
 Tác động đến những phần
khác (ALU, các thanh ghi đa
dụng…) để lệnh đó được thực
hiện
 Từ điển lưu nghĩa của mỗi
lệnh
 ID càng lớn thì PC càng hiểu
nhiều lệnh
Address bus
Data bus
Control bus
Registers
(data, address)
ALU

Address bus
driver
Data bus
driver
Control bus
driver
Program Counter
Internal bus
Bus
Interface
Execution Unit Sequencer
Hình 1.6
Control
Unit
Instruction Decoder
Instruction Register
07-09-2009 Trần Thiên Thanh 45
Ch1 III Chip Vi xử lý µP
 Thanh ghi lệnh:
 Lưu trữ mã nhị phân
của lệnh đang được
thực thi
Address bus
Data bus
Control bus
Registers
(data, address)
ALU
Address bus
driver

Data bus
driver
Control bus
driver
Program Counter
Internal bus
Bus
Interface
Execution Unit Sequencer
Hình 1.6
Control
Unit
Instruction Decoder
Instruction Register
07-09-2009 Trần Thiên Thanh 46
Ch1 III Chip Vi xử lý µP
 Khối thực thi:
 Thực thi và ghi kết
quả câu lệnh
 Các toán hạng nằm ở
thanh ghi hoặc ở bus
nội
Address bus
Data bus
Control bus
Registers
(data, address)
ALU
Address bus
driver

Data bus
driver
Control bus
driver
Program Counter
Internal bus
Bus
Interface
Execution Unit Sequencer
Hình 1.6
Control
Unit
Instruction Decoder
Instruction Register
Address bus
Data bus
Control bus
Registers
(data, address)
ALU
Address bus
driver
Data bus
driver
Control bus
driver
Program Counter
Internal bus
Bus
Interface

Execution Unit Sequencer
Hình 1.6
Control
Unit
Instruction Decoder
Instruction Register
07-09-2009 Trần Thiên Thanh 47
Ch1 III Chip Vi xử lý µP
 ALU:
 Vi mạch điện tử
 Thực hiện các phép
toán số học (+,-,*,/)
và logic(and, or, not,
xor)
Address bus
Data bus
Control bus
Registers
(data, address)
ALU
Address bus
driver
Data bus
driver
Control bus
driver
Program Counter
Internal bus
Bus
Interface

Execution Unit Sequencer
Hình 1.6
Control
Unit
Instruction Decoder
Instruction Register
Address bus
Data bus
Control bus
Registers
(data, address)
ALU
Address bus
driver
Data bus
driver
Control bus
driver
Program Counter
Internal bus
Bus
Interface
Execution Unit Sequencer
Hình 1.6
Control
Unit
Instruction Decoder
Instruction Register
07-09-2009 Trần Thiên Thanh 48
Ch1 III Chip Vi xử lý µP

 Thanh ghi đa dụng:
 Chức năng chính: lưu trữ tạm
thời dữ liệu
 Nội dung: dữ liệu cần xử lý
hoặc địa chỉ chứa giá trị cần
xử lý nhận từ bộ nhớ hoặc I/O
 Thanh ghi và độ rộng thanh
ghi càng lớn  càng tốt. (
không thực hiện nhiều phép
truyền thông tin giữa µP và bộ
nhớ do truy xuất trực tiếp từ
thanh ghi
Address bus
Data bus
Control bus
Registers
(data, address)
ALU
Address bus
driver
Data bus
driver
Control bus
driver
Program Counter
Internal bus
Bus
Interface
Execution Unit Sequencer
Hình 1.6

Control
Unit
Instruction Decoder
Instruction Register
Address bus
Data bus
Control bus
Registers
(data, address)
ALU
Address bus
driver
Data bus
driver
Control bus
driver
Program Counter
Internal bus
Bus
Interface
Execution Unit Sequencer
Hình 1.6
Control
Unit
Instruction Decoder
Instruction Register

×