Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Difference between word addressable and byte addressable

17/04/2021 Client: muhammad11 Deadline: 2 Day

Addressable Memory Related terms: Operating Systems, Android, Hypervisors, Transistors, Workload, Bit Address Bus, Memory Location View all Topics Architecture David Money Harris, Sarah L. Harris, in Digital Design and Computer Architecture (Second Edition), 2013 Memory If registers were the only storage space for operands, we would be confined to simple programs with no more than 32 variables. However, data can also be stored in memory. When compared to the register file, memory has many data locations, but accessing it takes a longer amount of time. Whereas the register file is small and fast, memory is large and slow. For this reason, commonly used variables are kept in registers. By using a combination of memory and registers, a program can access a large amount of data fairly quickly. As described in Section 5.5, memories are organized as an array of data words. The MIPS architecture uses 32-bit memory addresses and 32-bit data words. MIPS uses a byte-addressable memory. That is, each byte in memory has a unique address. However, for explanation purposes only, we first introduce a word-addressable memory, and afterward describe the MIPS byte-addressable memory. Figure 6.1 shows a memory array that is word-addressable. That is, each 32-bit data word has a unique 32-bit address. Both the 32-bit word address and the 32-bit data value are written in hexadecimal in Figure 6.1. For example, data 0xF2F1AC07 is stored at memory address 1. Hexadecimal constants are written with the prefix 0x. By convention, memory is drawn with low memory addresses toward the bottom and high memory addresses toward the top. Figure 6.1. Word-addressable memory MIPS uses the load word instruction, lw, to read a data word from memory into a register. Code Example 6.6 loads memory word 1 into $s3. The lw instruction specifies the effective address in memory as the sum of a base address and an offset. The base address (written in parentheses in the instruction) is a register. The offset is a constant (written before the parentheses). In Code Example 6.6, the base address is $0, which holds the value 0, and the offset is 1, so the lw instruction reads from memory address ($0 + 1) = 1. After the load word instruction (lw) is executed, $s3 holds the value 0xF2F1AC07, which is the data value stored at memory address 1 in Figure 6.1. Code Example 6.6 Reading Word-Addressable Memory Assembly Code # This assembly code (unlike MIPS) assumes word-addressable memory lw $s3, 1($0) # read memory word 1 into $s3 Code Example 6.7 Writing Word-Addressable Memory Assembly Code # This assembly code (unlike MIPS) assumes word-addressable memory sw $s7, 5($0) # write $s7 to memory word 5 Similarly, MIPS uses the store word instruction, sw, to write a data word from a register into memory. Code Example 6.7 writes the contents of register $s7 into memory word 5. These examples have used $0 as the base address for simplicity, but remember that any register can be used to supply the base address. The previous two code examples have shown a computer architecture with a word-addressable memory. The MIPS memory model, however, is byte-addressable, not word-addressable. Each data byte has a unique address. A 32-bit word consists of four 8-bit bytes. So each word address is a multiple of 4, as shown in Figure 6.2. Again, both the 32-bit word address and the data value are given in hexadecimal. Figure 6.2. Byte-addressable memory Code Example 6.8 shows how to read and write words in the MIPS byte-addressable memory. The word address is four times the word number. The MIPS assembly code reads words 0, 2, and 3 and writes words 1, 8, and 100. The offset can be written in decimal or hexadecimal. The MIPS architecture also provides the lb and sb instructions that load and store single bytes in memory rather than words. They are similar to lw and sw and will be discussed further in Section 6.4.5. Byte-addressable memories are organized in a big-endian or little-endian fashion, as shown in Figure 6.3. In both formats, the most significant byte (MSB) is on the left and the least significant byte (LSB) is on the right. In big-endian machines, bytes are numbered starting with 0 at the big (most significant) end. In little-endian machines, bytes are numbered starting with 0 at the little (least significant) end. Word addresses are the same in both formats and refer to the same four bytes. Only the addresses of bytes within a word differ. Figure 6.3. Big- and little-endian memory addressing Code Example 6.8 Accessing Byte-Addressable Memory MIPS Assembly Code lw $s0, 0($0) # read data word 0 (0xABCDEF78) into $s0 lw $s1, 8($0) # read data word 2 (0x01EE2842) into $s1 lw $s2, OxC($0) # read data word 3 (0x40F30788) into $s2 sw $s3, 4($0) # write $s3 to data word 1 sw $s4, 0x20($0) # write $s4 to data word 8 sw $s5, 400($0) # write $s5 to data word 100 Example 6.2 Big- and Little-Endian Memory Suppose that $s0 initially contains 0x23456789. After the following program is run on a big-endian system,

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Quality Homework Helper
Accounting & Finance Specialist
Engineering Exam Guru
Smart Tutor
Homework Guru
Professor Smith
Writer Writer Name Offer Chat
Quality Homework Helper

ONLINE

Quality Homework Helper

You can award me any time as I am ready to start your project curiously. Waiting for your positive response. Thank you!

$21 Chat With Writer
Accounting & Finance Specialist

ONLINE

Accounting & Finance Specialist

Hello, I an ranked top 10 freelancers in academic and contents writing. I can write and updated your personal statement with great quality and free of plagiarism

$35 Chat With Writer
Engineering Exam Guru

ONLINE

Engineering Exam Guru

Give me a chance, i will do this with my best efforts

$22 Chat With Writer
Smart Tutor

ONLINE

Smart Tutor

Give me a chance, i will do this with my best efforts

$46 Chat With Writer
Homework Guru

ONLINE

Homework Guru

I have read and understood all your initial requirements, and I am very professional in this task.

$26 Chat With Writer
Professor Smith

ONLINE

Professor Smith

Give me a chance, i will do this with my best efforts

$27 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Tuggeranong recycling drop off centre - Using the financial statements for the snider corporation - Experimental techniques in biochemistry - Marita's bargain answer key - 8-1 Discussion: Sustainable Design - Unit 9 discussion - Marks by linda pastan theme - Toledo custom manufacturing quality control - Stuart martin hugh jackman - Philosophy of therapeutic recreation - Psy 110 university of phoenix - Unit 2 Contemporary Issues in Education Project 2 - Data driven decision making wgu - Donor's cost or adjusted basis h&r block - Financial accounting - Anz credit card hotline - Too full of the milk of human kindness metaphor - No frills gym chain bulks up thanks to workout boom - Which forecasting time frame best identifies seasonal effects - Risk management principles and practices elliot pdf - Tertiary student concession card nsw - Walden university mission vision and goals - 16 700 in scientific notation - Market structure worksheet - Steelers family fest bogo ticket code - Conversion of maleic acid to fumaric acid - Cuando tenía gripe mi madre me tomar la temperatura - St therese church torquay - How markets fail summary per chapter - Need answer - Australian secret intelligence service salary - Let not to the marriage of true minds - ?? same-day +27833173182 BUTHA BUTHE ABORTION CLINIC // PILLS,,,, - Colpopexy for displaced uterus using an abdominal approach - Image lab software free download bio rad - Communicate with professor - What Are Your Motivations? Attachments - Ethical and Cultural Issues in Group Work - Into the wild discussion - Mastering skimming will improve your reading speed and comprehension - Excerpt from food how altered essay - Mornpen vic gov au payonline - Tableau zoom in pie chart - Unit IV Case Study(For Dr.Ellen RM) - Siemon et al 2011 - The food services division of cedar river amusement park inc - Cash receipt journal and cash payment journal - Imaging and hashing digital evidence - Case studies - Lexical categories in english - Tata motors compensation restructuring case analysis ppt - Rainfall statistics visual basic - Sample letter of estimate of surgery fees - Where is the coriolis effect the largest - Seven c's of communication - Riverbed modeler academic edition 17.5 - Job instruction sheet for counter person - Westpac small business grants - Dulux limed white colour scheme - Shop direct finance company very - The rocking horse winner discussion questions - SCIENCE DISCUSSION(NO PLAGIARISM, A++ WORK, QUALITY, ON TIME) - Surface finish defects in a small electric appliance occur - Supreme Court Essay - How to calculate the heat of reaction - Round 216 to the nearest ten - Print network diagram ms project - Leadership and conflict management ppt - Mohegan tribe kevin brown red eagle - Hans hubermann and max relationship quotes - Healthy myles fitness center - Joel rogers uw madison - Segmentation of toothpaste market in india - What does fx stand for in medical terms - The treadmill of consumption james roberts - Grand chase rufus 4th job - Australian unity claim form - Translink monthly pass price - "A" WORK DISCUSSION IN 18 HOURS - Decision tree analysis case study - Oprah winfrey 2013 harvard commencement speech - Define domestic violence in sociology - Database driven solution for tracking sales and inventory - Task centred social work - Songs that have literary elements - Spaghetti noodle tower challenge - Image of strigil and oil container found at pompeii - Solutions acids and bases worksheet - Marie antoinette primary sources - Country Manager Simulation - Mental illness informative speech outline - A rose for emily shmoop - How long does atp-pc last - What is the competitive advantage of jeep cherokee - Critical thinking - Problem 9 2a - Statewide waste and resource recovery infrastructure plan - It compliance analyst job description - What does iap mean in spss - Istr credits hack crack tool zip