how RAM store ARRAY in it memory

Computer architecture topics

how RAM store ARRAY in it memory

Postby G-sparkZ » Sun May 09, 2010 2:28 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
G-sparkZ
Promo Team
 
Posts: 296
Joined: Thu Feb 18, 2010 11:36 am
Cash on hand: 15,777.40
Bank: 0.00
Location: SRI LANKA.KANDY.

Invitations sent: 23
Registered friends: 3

Re: how RAM store ARRAY in it memory

Postby Neo » Sun May 09, 2010 6:24 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
Neo
Site Admin
 
Posts: 1145
Joined: Tue Jul 14, 2009 8:37 pm
Cash on hand: 66,229.10
Bank: 1,222,787.00
Location: London
Medals: 1
EC_Achievment (1)

Invitations sent: 85
Registered friends: 11
Highscores: 11

Re: how RAM store ARRAY in it memory

Postby G-sparkZ » Mon May 10, 2010 2:52 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
G-sparkZ
Promo Team
 
Posts: 296
Joined: Thu Feb 18, 2010 11:36 am
Cash on hand: 15,777.40
Bank: 0.00
Location: SRI LANKA.KANDY.

Invitations sent: 23
Registered friends: 3

Re: how RAM store ARRAY in it memory

Postby Kevin » Tue May 11, 2010 4:52 am

If you are interested in Computer Architecture, this is the book for you. viewtopic.php?f=90&t=1494
Hope you already got it?
User avatar
Kevin
 
Posts: 193
Joined: Sun Jul 19, 2009 2:19 pm
Cash on hand: 47,526.10
Location: Sydney

Invitations sent: 6
Registered friends: 0

Re: how RAM store ARRAY in it memory

Postby G-sparkZ » Tue May 11, 2010 1:19 pm

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

thank you
User avatar
G-sparkZ
Promo Team
 
Posts: 296
Joined: Thu Feb 18, 2010 11:36 am
Cash on hand: 15,777.40
Bank: 0.00
Location: SRI LANKA.KANDY.

Invitations sent: 23
Registered friends: 3


Return to Computer Architecture

Who is online

Users browsing this forum: No registered users and 1 guest