UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 37986

MIG Spartan-6 MCB DDR2/DDR3 - How to calculate MCB efficiency?

Description

What is the expected performance of the MCB for my application?

How can I calculate/evaluate MCB efficiency?

Solution

Performance is not the maximum data rate.

The DRAM data bus achieves near peak bandwidth only during bursts of read or write.

Any DRAM data bus overhead will lower the effective data rate.

Overhead includes:
  • Precharge time for changing rows within the same bank (Where the Access address is not in the same row (page hit))
  • Write recovery time to change to read accesses
  • Bus turnaround time to change from read to write

Efficiency (%) = clock cycles transferring data / total clock cycles.
Effective Bandwidth = Peak Bandwidth * Efficiency

The efficiency of the MCB is highly dependent on the address/traffic pattern in use.

To determine the efficiency for a specific application, it is important to simulate the design with the application's address/traffic pattern.

To get the above clock cycles, you can add counters in the source code.
 
One counter is used for the total clock cycles and will be enabled by the cal_done signal.

Transferring data cycles can be enabled by either wr_en or rd_en signals.

Wr_en or rd_en can be achieved from cs_n, ras_n, cas_n and we_n signals.

To improve efficiency, you can select the ROW_BANK_COLUMN address mapping scheme for a stream data transaction and BANK_ROW_COLUMN address mapping scheme for a short, random transaction. 


Revision History:
9/9/2014 - Initial Release
AR# 37986
Date Created 09/13/2010
Last Updated 09/11/2014
Status Active
Type General Article
Devices
  • Spartan-6 LX
  • Spartan-6 LXT
Tools
  • ISE Design Suite
IP
  • MIG