OpenCores

SDRAM Controller with intelligent bank manage

Project maintainers

Details

Name: sdram_controller_wibm
Created: Oct 8, 2026
Updated: Oct 9, 2026
SVN Updated: Oct 22, 2026
SVN: Browse
Latest version: download (might take a bit to start...)
Statistics: View
Bugs: 0 reported / 0 solved
Star0you like it: star it!

Other project properties

Category:Memory core
Language:Verilog
Development status:Beta
Additional info:
WishBone compliant: No
WishBone version: n/a
License: GPL

Sdram controller with intelligent bank manage and referesh

Developed and work well on EG4S20NG88 and its embedded sdram EM638325, clock frequency is 125MHz.
It is intelligently to decide the timing of active, read-write and precharge, and intelligently to refresh when the bus is idle or force refresh when the timeline is arrive.

Read or write datas fllow the rules below can decrease the gaps of read or write:
1. last data to this data is read-to-read or write-to-write (internal rules, can be ignored);
2. if row of last data is different to this data, bank of last data must be different to this data;
3. chip burst length and data burst length must large or equal 2;

In ideal situation and close the auto refresh function, the data rate can be 100%, same to I_clk, no gap(it will be lower in more genral situation).

Parameters

Basic parameters:
CLK_FREQ
ADDRRANK
ADDRWIDTH
DATAWIDTH
BANKNUM
ROWNUM
COLNUM
PHYADDRWIDTH
PHYBANKWIDTH
PHYDQMWIDTH
CASLATENCY
POWERUP_DELAYMS
BURSTLENGTH
BURSTTYPE

Input buffer parameters:
INWBUFFERDEPTH
WDATABATCHLENGTH
WMAXBATCHDELAY
INRBUFFERDEPTH
RDATABATCHLENGTH
RMAXBATCHDELAY

Bank manage and refresh parameters:
WPREACTIVEDEPTH
RPREACTIVEDEPTH
RWBUFFERDEPTH
AUTO_REFRESH
REFRESH_TIME_MS
REFRESH_LINE
REFRESH_SLICE