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

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

Đang tải... (xem toàn văn)

Thông tin tài liệu

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 . 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ý. 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à. 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,

Ngày đăng: 01/08/2014, 20:21

Từ khóa liên quan

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan