To implement the mapping shown in the figure, a controller must convert byte addresses
issued by the processor to word addresses. For example, if the processor requests
a read operation for byte address 17, the controller must issue a read request for
word 4, and then extract the second byte from the word.
Because the memory can only transfer an entire word at a time, a byte write operation
is expensive. For example, if a processor writes byte 11, the controller must read
word 2 from memory, replace the rightmost byte, and then write the entire word back to
memory.
Mathematically, the translation of addresses is straightforward. To translate a byte
address, B, to the corresponding word address, W, the controller divides B by N, the
number of bytes per word, and ignores the remainder. Similarly, to compute a byte
Results (
Thai) 3:
[Copy]Copied!
การใช้แผนที่ที่แสดงในรูป , ควบคุม ต้องแปลงไบต์ที่อยู่
ออกโดยหน่วยประมวลผลเพื่อเน้นคำ ตัวอย่างเช่น ถ้าตัวประมวลผลการร้องขอ
อ่านงานที่อยู่ไบต์ 17 , ตัวควบคุมจะต้องออกอ่านขอ
คำ 4 แล้วแยกไบต์ที่สองจากคำ .
เพราะหน่วยความจำสามารถโอนเป็นคำทั้งหมดที่เวลาเขียนงาน
ไบต์ราคาแพง ตัวอย่างเช่น ถ้าโปรแกรมเขียนไบต์ 11 , ตัวควบคุมจะต้องอ่าน
คำ 2 จากความจำ แทนที่ตำแหน่งไบต์ แล้วเขียนคำทั้งหมดกลับไป
หน่วยความจำทางคณิตศาสตร์ , การแปลที่อยู่คือตรงไปตรงมา แปลไบต์
ที่อยู่ , B , ที่อยู่ , คำที่เกี่ยวข้อง W , ควบคุมโดยแบ่ง B N ,
จำนวนไบต์ต่อคําและละเว้นส่วนที่เหลือ ในทำนองเดียวกันค่าไบต์
Being translated, please wait..
![](//wwwimg.ilovetranslation.com/pic/loading_3.gif?v=b9814dd30c1d7c59_8619)