How many words can be in the address space?

-1

Here is the problem I am working on

The Problem: A high speed workstation has 64 bit words and 64 bit addresses with address resolution at the byte level. How many words can in be in the address space of the workstation?

I defined the different terms in the problem

  • Word Size - Processor natural unit of data. The word size determines the amount of information that can be processed in one go
  • Byte Level Addressing - Hardware architectures that support accessing individual bytes within a word
  • 64 Bit Addressing - You have have 64 bits to specify an address in Runtime memory that holds an instruction or data
  • Address Space - Running program's view of memory in the system

How would you go about using all these definitions to solve this problem?

From 64 bits, I know that technically there are 2^64 locations in memory and from 64 bit words, that a processor processes 8 bytes a time. But I don't know how to use that information to conclude how many words are in the address space of the computer.

committedandroider

Posted 2015-05-31T01:35:15.793

Reputation: 203

If a CPU has 64-bit registers and you are using 64-bit words, then you can address a single word, in a single register. – Ramhound – 2015-05-31T01:45:36.527

Each word takes up 8 memory locations? – committedandroider – 2015-05-31T19:00:40.363

No; read what I said; I didn't say that – Ramhound – 2015-05-31T19:29:33.207

does a 64 bit word mean that the word(amount of data processed by CPU at one time) takes up 64 bits or does it mean that it takes 64 bits to address the word? – committedandroider – 2015-05-31T20:47:49.757

1A 64-bit processor has 64-bit registers ( look up what a register is if you don't understand ). All data fit into registers. You indicated in your example that a word was 64-bits, which means a single word, would fit into a single register. David's answer indicates how many 8-bit words can fit, and his answer is correct, for 8-bit words though. He used bytes, though, for some reason. – Ramhound – 2015-05-31T21:09:27.440

Thanks!! Can you look over my answer to my other question on caching? http://stackoverflow.com/questions/30555623/how-many-bits-are-in-the-address-field-for-a-directly-mapped-cache

– committedandroider – 2015-05-31T21:15:00.573

Answers

3

Since we have 64-bit addresses and address resolution is at the byte level, 2^64 bytes can be addressed. Since each word is 8 bytes, (2^64)/8 words can be addressed.

David Schwartz

Posted 2015-05-31T01:35:15.793

Reputation: 58 310