Code Monkey home page Code Monkey logo

Comments (7)

BrunoLevy avatar BrunoLevy commented on May 23, 2024

Hi Matt,

From what I'm seeing in the tech sheet, it seems that IS42S16160G is very similar to the other chips supported by LiteX (except that it supports higher freq). There are good chances that it can work with one of the other chips supported by LiteX, did you try ? LiteX BIOS has a sdram_test command that can help detecting if something goes wrong.

Best,
-- Bruno

from learn-fpga.

darkstar007 avatar darkstar007 commented on May 23, 2024

Hi Bruno,

sdram_test didn't work with AS4C32M16, it worked with MT48LC16M16 (but only tested first megabyte - not sure if that's expected). Not tried AS4C16M16 yet - got sidetracked by food....will try shortly.

Thanks,
Matt

from learn-fpga.

darkstar007 avatar darkstar007 commented on May 23, 2024

AS4C16M16 also appears to work - and also only 1Mbyte is tested.

from learn-fpga.

BrunoLevy avatar BrunoLevy commented on May 23, 2024

LiteX BIOS has several commands to do various tests.

litex> mem_list
will show the different memories projected into address space.
MAIN_RAM is the SDRAM (starts at address 0x40000000)

then you can do:
mem_test

you can also do:
mem_speed

from learn-fpga.

darkstar007 avatar darkstar007 commented on May 23, 2024

Using MT48LC16M16 I get

litex> mem_list
Available memory regions:
ROM       0x00000000 0x20000 
SRAM      0x01000000 0x2000 
MAIN_RAM  0x40000000 0x2000000 
CSR       0x82000000 0x10000 

litex> mem_test 0x40000000 0x2000000 
Memtest at 0x40000000 (32.0MiB)...
  Write: 0x40000000-0x42000000 32.0MiB    
   Read: 0x40000000-0x42000000 32.0MiB    
Memtest OK

litex> mem_speed 0x40000000 0x2000000 
Memspeed at 0x40000000 (Sequential, 32.0MiB)...
  Write speed: 4.8MiB/s
   Read speed: 6.4MiB/s

So its all probably working....

from learn-fpga.

BrunoLevy avatar BrunoLevy commented on May 23, 2024

Sounds good !
Thank you for the update.
Normally these memory chips share many characteristic. You'll tell me whether the demos work (added the missing demos.h file), and I'll add a note in the doc that
"--sdram-module MT48LC16M16" can work for IS42S16160G.

from learn-fpga.

darkstar007 avatar darkstar007 commented on May 23, 2024

Just tried the demos and they seem fine.

from learn-fpga.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.