# ECE Memory!

1. Feb 7, 2009

### WolfpackPride

1. The problem statement, all variables and given/known data

A 16 KB memory has a 16 bit wordsize. How many 16 bit words total can be stored in this memory?

2. Relevant equations

None given

3. The attempt at a solution

I tried many things. My answer were 2e12, 2e13, and 2e14. All of these were wrong. Please help soon (if you can. I only have until midnight and have been working on this for over a day. It's not that difficult but I just can't get it.

2. Feb 7, 2009

### mgb_phys

A byte is generally 8bits.
KB (at least in computers) means 1024bytes

3. Feb 7, 2009

### WolfpackPride

Yea, I remember that but I am still not sure how to find how many 16 bit words can be stored.

4. Feb 7, 2009

### WolfpackPride

Wait a second...would I just multiply 1024 times 16? It's not neccesarily the math, but rather the terminology that is confusing me. 16KB = 1024bytes(16) = 16384 bytes but is that how many "16 bit words that can be stored" They're asking for the answer in terms of "words" which is really tripping me up. Any more guidance?

5. Feb 7, 2009

### mgb_phys

16KB is 16*1024 bytes, each byte is 8 bits so a 16bit word is two bytes.
So how many 2 bytes in 16*1024bytes.

Alternately 16KB is 16*1024*8 bits, so how many 16bits in this

6. Feb 7, 2009

### WolfpackPride

When I do that, I get 131072. However, is this in terms of words?

7. Feb 7, 2009

### MATLABdude

Maybe a new tactic is needed here. This is akin to a question saying that you've got 144 eggs, how many dozen eggs is that?

Now, how many bits in 16 KB? If in that 16 KB of memory, you stored 16-bit variables, how many variables could you store?

Now convert that into base-2

8. Feb 7, 2009

### WolfpackPride

Bits in 16KB?

1KB=1024 bytes
1 byte = 8 bits

16(1024)=16384bytes
16384bytes*(8 bits / 1 byte) = 131072 bits

If in that 16 KB of memory, you stored 16-bit variables, how many variables could you store?

(131072 bits / 16 bits variables) = 8192

Now convert that into base-2

so the solution should be = 2e13 words (8192 words), right? In base 2: 100000000

I previously tried 2e13 and it said that was wrong, is this an error on my part (syntax etc) or is that not the answer? Should I try 10000000 (words) instead?

Thank You, I got it. What I had typed in was 2e13 waaay back when I was first submitting this. I meant 2^13. BIGG difference 8192 vs 2000000000.....

Last edited: Feb 7, 2009