- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am about to design a system with uClinux, and I was wondering if the performances would be correct if I only used an SDRAM. SRAM is a bit expensive if I want to have enough memory to run my linux (I guess I need at least 4MB). However, I have read in some threads around here that SDRAM performances were quite bad. Is there any experience here of people running linux without SRAM ? My second question is quite the same and about the Altera Cyclone devboard : I use the standard design (using SRAM as exception address thus), and I follow the Quick Start Guide to build a kernel, that I run from the SDRAM. In this case, I suppose the whole kernel is uploaded in SDRAM and then executed from there. My question is : is the SRAM still in use ? Do I lose any performance if I remove it ? I can see that ramfs file systems are mounted but I guess its only in SDRAM. I suppose the /dev/ramX are linked to the SDRAM, not the SRAM, so is the SRAM in use ? Thanks a lot ceticLink Copied
17 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi cetic,
> ... I have read in some threads around here that SDRAM performances > were quite bad. I've found the SDRAM controller performance to be pretty awful. Given the logic area it occupies and its performance, I no longer consider it a viable alternative for many new designs. > SRAM is a bit expensive if I want to have enough memory to run > my linux (I guess I need at least 4MB). I've switched to PSRAM (pseudo SRAM) for new designs. It eliminates the SDRAM controller and it performs better. The cost is very attractive ... the expense is the number of pins you must use. Regards, --Scott- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your reply,
that means that the system I am currently using on the Altera Cyclone devboard is very slow, I guess. Do you still have an idea whether the SRAM is used or not ? My question is do I still need a SRAM if I made a custom board where Linux is run from a SDRAM (just like on the devboard) ? Any way I will check the PSRAM solution. Thanks, cetic- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
> Do you still have an idea whether the SRAM is used or not ?
I don't believe it's used in the kernel version I'm using. It might be mapped in mtd ... I never checked ... and I didn't see it mapped into a region in the startup either. > do I still need a SRAM if I made a custom board where Linux is > run from a SDRAM (just like on the devboard) ? No, the SRAM is not necessary -- you can run linux just fine without it. Regards, --Scott- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Scott,
may I ask you what PSRAM you use (manufacturer) and what amount of memory I need to run a linux properly ? Thanks a lot cetic- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi cetic,
I'm using Micron MT45W4MW16PFA (4M x 16-bit), but will be switching to the MT45W2MW16PFA (2M x 16-bit) if all goes well. The marketing name for the part family is "ASYNCHRONOUS CellularRAM". > what amount of memory I need to run a linux properly ? That depends on your application's memory requirements. For my application 8 MB is plenty, but 4 MB might be a tad too tight. The two parts above are pin compatible ... so I'm not terribly concerned. You might want to do some experimenting on a development board (altera or microtronix) ... to get a better feel for your requirements. Regards, --Scott- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot
cetic- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you considered using mainstream DDR RAM instead of SDRAM?
Altera's DDR RAM controller offers better performance than our SDRAM controller.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can anyone provide any form of performance data using DDR SRAM and nios2?
Marco would you mind providing some insight?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by smcnutt@Jan 20 2005, 07:29 PM hi cetic,
> ... i have read in some threads around here that sdram performances
> were quite bad.
i've found the sdram controller performance to be pretty awful. given
the logic area it occupies and its performance, i no longer consider it a
viable alternative for many new designs.
> sram is a bit expensive if i want to have enough memory to run
> my linux (i guess i need at least 4mb).
i've switched to psram (pseudo sram) for new designs. it eliminates
the sdram controller and it performs better[/b]. The cost is very attractive ... the expense is the number of pins you must use. Regards, --Scott <div align='right'><{post_snapback}> (index.php?act=findpost&pid=4142) --- Quote End --- [/b] --- Quote End --- <div class='quotetop'>QUOTE </div> --- Quote Start --- I've found the SDRAM controller performance to be pretty awful. Given the logic area it occupies and its performance, I no longer consider it a viable alternative for many new designs.[/b] --- Quote End --- Is these tru, If so, how much slower will it be. Frequeny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by smcnutt@Feb 3 2005, 02:33 PM i'm using micron mt45w4mw16pfa (4m x 16-bit), but will be
switching to the mt45w2mw16pfa (2m x 16-bit) if all goes well.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=4494)
--- quote end ---
--- Quote End --- What is the difference in prize of this memory compared to sdram ? half ? twice ? Regards. Michael Schmitt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Michael,
> What is the difference in prize of this memory compared to sdram ? half ? twice ? Depending on density, roughly twice. E.g. for low quantity: MT48LC8M16 (8M x 16): ~ 10 USD MT45W8MW16 (8M x 16): ~ 16 USD MT45W4MW16 (4M x 16): ~ 11 USD Your mileage may vary ;-) Regards, --Scott- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi smcnutt,
do you use a 16 bit or 32 bit external databus to the psram ?? thanks for your replay nepomuk- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
> do you use a 16 bit or 32 bit external databus to the psram ??
16-bit --Scott- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by smcnutt@Jan 20 2005, 01:29 PM hi cetic,
> ... i have read in some threads around here that sdram performances
> were quite bad.
i've found the sdram controller performance to be pretty awful. given
the logic area it occupies and its performance, i no longer consider it a
viable alternative for many new designs.
> sram is a bit expensive if i want to have enough memory to run
> my linux (i guess i need at least 4mb).
i've switched to psram (pseudo sram) for new designs. it eliminates
the sdram controller and it performs better[/b]. The cost is very attractive ... the expense is the number of pins you must use. Regards, --Scott <div align='right'><{post_snapback}> (index.php?act=findpost&pid=4142) --- Quote End --- [/b] --- Quote End --- Scott, I've been consdering using PSRAM for our upcoming NIOS II system, mainly due to it's much lower power consumption vs DDR. Do you use the PSRAM as a simple SRAM replacement (in which mode it has quite slow 70ns access times) or do you make use of the Burst mode to get much faster average access rates? I've been tinking about knocking up an interface block to access it in burst mode but the effectiveness of that depends on whether the NIOS can cache grabs it's instruction stream in bursts or not. Mark.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Mark,
> Do you use the PSRAM as a simple SRAM replacement (in which mode it has > quite slow 70ns access times) or do you make use of the Burst mode to get much > faster average access rates? I use it as a simple SRAM replacement. As for the access times ... on the board I was referring to, I was (continue) to use a 50 MHz clock. So compared to SDRAM with anything more than 3.5 clocks per access, the PSRAM isn't slow ;-). And I observed SDRAM performance that was _much_ worse than that. Aside from the extra pins, the PSRAM was ideal for the application -- and I was able to move to a lower density FPGA. Also, to be fair, I haven't re-visited the matter -- so I don't know if the SDRAM controller has improved. >I've been tinking about knocking up an interface block to access it in burst mode Same here ... I'm thinking the same for our new board. But unfortunately, like many other things ... it's still just thinking. ;-) This might be a good candidate to add to a wish list for the Altera design teams. Regards, --Scott- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What kind of power restrictions are you on? I persoally don't think DDR is too heavy on power... that is, without using Vtt termination. I doubt you could get to speeds high enough to require Vtt termination, unless you had multiple chips banked.
Maybe DDR2?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by jdhar@Feb 20 2006, 12:11 PM what kind of power restrictions are you on? i persoally don't think ddr is too heavy on power... that is, without using vtt termination. i doubt you could get to speeds high enough to require vtt termination, unless you had multiple chips banked.
maybe ddr2?
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=12825)
--- quote end ---
--- Quote End --- Thanks Scott, I agree, a PSRAM IP block from Altera would be very nice! jdhar: I have looked at DDR and DDR2, though I can only go on what the data sheets tell me as I've no personal experience. In our battery powered app a 256Mb DDR looks like taking anywhere between 300mW and 600mW, whereas the equivalent amount of PSRAM takes no more than 120mW. I don't really need the full DDR speed, I just want to be able to run one or several NIOS processors at around 80MHz without incurring too much slow down due to slow RAM. PSRAM in burst mode looks like it could be a perfect match, but I'm still in two minds.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page