how RAM store ARRAY in it memory

Computer architecture topics
Post Reply
User avatar
Face
Major
Major
Posts: 727
Joined: Thu Feb 18, 2010 5:06 pm
Location: SRI LANKA.KANDY.

how RAM store ARRAY in it memory

Post by Face » Sun May 09, 2010 7:58 pm

How RAM store ARRAY in it's memory.?

I read your post about RAM architecture and i got this problem how can RAM memory an array?

did it use many ram locations to use each array elements?
or is there any other way?
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: how RAM store ARRAY in it memory

Post by Neo » Sun May 09, 2010 11:54 pm

I remember I told you about northbridge that handles RAM in a modern motherboard. This is also known as Memory Controller Hub(MCH) or an Integrated Memory Controller(IMC).

Northbridge abstracts the type of memory architecture to the CPU. In other words, CPU doesn't know what type of memory is present on the motherboard (DDR, SDRAM, etc...). Just write the location to address bus and read/write data from/to data bus.

Now lets answer your question. Lets say you are going to define an array that require 1000 bytes. In modern computers, the Minimum Addressable Unit (MAU) is defined as a byte (8-bits). So your array requires 1000 memory locations in the RAM.

Usually these bytes are allocated continuously on the user addressable space in RAM. The starting address of the array is usually decided by the Operating System. Say the starting address of your array is 0xE0000000. Then the end address will be 0xE00003E8 (0xE0000000 + 0x3E8).

I think you are now clear that RAM architecture is independent of the CPU.
User avatar
Face
Major
Major
Posts: 727
Joined: Thu Feb 18, 2010 5:06 pm
Location: SRI LANKA.KANDY.

Re: how RAM store ARRAY in it memory

Post by Face » Mon May 10, 2010 8:22 pm

Yep BRo...thank you for explanation...
I can remember you told me more about the ram architecture...I love hardware architecture lessons more than any subjest...
User avatar
Kevin
Sergeant Major
Sergeant Major
Posts: 40
Joined: Sun Jul 19, 2009 7:49 pm
Location: Sydney

Re: how RAM store ARRAY in it memory

Post by Kevin » Tue May 11, 2010 10:22 am

If you are interested in Computer Architecture, this is the book for you. https://robot.lk/viewtopic.php?f=90&t=1494
Hope you already got it?
User avatar
Face
Major
Major
Posts: 727
Joined: Thu Feb 18, 2010 5:06 pm
Location: SRI LANKA.KANDY.

Re: how RAM store ARRAY in it memory

Post by Face » Tue May 11, 2010 6:49 pm

Yep kevin BRO..you are the man who gave me that book... i got that....PDF

thank you
User avatar
altonsuny
Posts: 1
Joined: Wed Dec 19, 2012 4:51 pm

Re: how RAM store ARRAY in it memory

Post by altonsuny » Wed Dec 19, 2012 5:28 pm

I like it. Thanks for sharing these information. Keep it up. :biggrin:
Post Reply

Return to “Computer Architecture”