Ch1 III Chip Vi xử lý µPhoạt động cùng 1 thời... 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 k
Trang 1Ch1 III Chip Vi xử lý µP
hoạt động cùng 1 thời
Trang 2Ch1 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
Registers
(data, address) ALU
Address bus driver
Data bus
driver
Control bus driver
Program Counter Internal bus
Bus Interface
Execution Unit Sequencer
Control
Unit
Instruction Decoder
Instruction Register
Trang 3Ch1 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
Registers
(data, address) ALU
Address bus driver
Data bus
driver
Control bus driver
Program Counter Internal bus
Bus Interface
Execution Unit Sequencer
Control
Unit
Instruction Decoder
Instruction Register
Trang 4Ch1 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
Registers
(data, address) ALU
Address bus driver
Data bus
driver
Control bus driver
Program Counter Internal bus
Bus Interface
Execution Unit Sequencer
Control
Unit
Instruction Decoder Instruction Register
Registers
(data, address) ALU
Address bus driver
Data bus
driver
Control bus driver
Program Counter Internal bus
Bus Interface
Execution Unit Sequencer
Control
Unit
Instruction Decoder Instruction Register
Trang 5Ch1 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)
Registers
(data, address) ALU
Address bus driver
Data bus
driver
Control bus driver
Program Counter Internal bus
Bus Interface
Execution Unit Sequencer
Control
Unit
Instruction Decoder Instruction Register
Registers
(data, address) ALU
Address bus driver
Data bus
driver
Control bus driver
Program Counter Internal bus
Bus Interface
Execution Unit Sequencer
Control
Unit
Instruction Decoder Instruction Register
Trang 6Ch1 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
Registers
(data, address) ALU
Address bus driver
Data bus
driver
Control bus driver
Program Counter Internal bus
Bus Interface
Execution Unit Sequencer
Control
Unit
Instruction Decoder Instruction Register
Registers
(data, address) ALU
Address bus driver
Data bus
driver
Control bus driver
Program Counter Internal bus
Bus Interface
Execution Unit Sequencer
Control
Unit
Instruction Decoder Instruction Register