-1
\$\begingroup\$

Is it correct to assume that the number of addresses for 32k of ram is 2^15 addresses? Then for the peripherals is it 2^6 addresses?

\$\endgroup\$

closed as unclear what you're asking by Chris Stratton, PeterJ, Nick Alexeev Feb 15 '16 at 6:39

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • \$\begingroup\$ Can somebody explain the downvotes? \$\endgroup\$ – MrWiseguy818 Feb 15 '16 at 0:58
  • 2
    \$\begingroup\$ 1. Processor architecture is not really electrical engineering. 2. Your question doesn't really make sense. For one, why are you assuming a peripheral has to map to a address? Is this in a memory-mapped IO context? You need to provide a LOT more information. \$\endgroup\$ – Connor Wolf Feb 15 '16 at 1:06
  • \$\begingroup\$ 1. What is the appropriate stack exchange for processor architecture? \$\endgroup\$ – MrWiseguy818 Feb 15 '16 at 1:09
  • \$\begingroup\$ 2. I'm assuming a peripheral has to map to an address because it is indeed memory-mapped, I should have clarified. I'm not sure what more information is required because the question is not specific to a certain computer system. \$\endgroup\$ – MrWiseguy818 Feb 15 '16 at 1:11
  • 1
    \$\begingroup\$ The problem isn't that this is the wrong site, the problem is that this question is not suitable anywhere on stack exchange. \$\endgroup\$ – Chris Stratton Feb 15 '16 at 4:44
3
\$\begingroup\$

As posed this question is not answerable. It reeks of an oversimplified homework question that can only be answered in the context of the course it goes with and the assumpetions that course has taught.

A computer system has RAM of 32K bytes

The word "byte" has two different definitions. The original defintion was "the smallest addressable unit of memory" but sometimes it is uses as a synonym of "octet". If the latter meaning is used then the number of addresses needed will depend on the size of the smallest addressable unit of data (which is not nessacerally the same as the data bus width).

If we assume that "byte" does reffer to the smallest addressable unit of memory (either because that is the definition the asker is using or because your system has 8 bits as it's smallest addresable unit) then yes you will need 215 addresses to address your ram. Since most computers nowadays do indeed use 8 bits as their smallest addressable unit this answer is probablly right.

and 64 peripherals.

This is where it gets really messy. If we assume the perhiperals use one address each then your answer would be correct but most real perhiperals use more than that. How many more varies wildly.

What is the number of distinct addresses required?

In addition to the above there was no mention of rom in your question, a real computer system is almost certain to have some rom.

And finally note that it would be very weird for a computer system to have a non power of two address space size. It's not entirely clear what is meant by "required" in your question but it would not surprise me if your course expects you to round up to the next power of 2

\$\endgroup\$
  • \$\begingroup\$ love your answer +1'd it ... but the weirdness is not that weird if you live in the FPGA world :) however that may not be the case above \$\endgroup\$ – Ahmed Masud Apr 26 '18 at 14:26

Not the answer you're looking for? Browse other questions tagged or ask your own question.