Tuesday 29 May 2018

How to find the largest size of memory?


how can I calculate the largest size of memory that can be used with a 16 bit address bus and a 8 bit data bus?


Is it 2**16 bytes - with regard to the address bus - or 1 byte - with regard to the data bus?



Answer



It is the address bus bit count that determines how many locations you may pinpoint.


And yes, '2' to the power of 'bits' tells the amount.


In case of a longer read/write (16, 32 or even more bits) the "next" adress required is read.
Note also the difference between small-endian and big-endian CPU's; see
http://en.wikipedia.org/wiki/Endianness


The data bus size determines how big chunks the CPU will transfer at a time (for one read operation), it doesn't "stop" the ability to read more (e.g. the old M68008 is a 16/32 bit CPU - having fourteen 32bit registers, combined with an 8 bit external data bus - reading/writing 32 bits from/to memory is handled by the internal logic of the CPU - but takes longer as it has to be completed in several memory access operations).


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...