Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

SDRAM read problem

Status
Not open for further replies.

onuurkse

Newbie
Newbie level 1
Joined
Mar 23, 2021
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
19
Hi guys, I'm working with the IS42S16400 model 64-Mbit SDRAM that I have. I write 16-bit data to random addresses and read. It's okay to write, but I'm having trouble on the reading side. I used the SDRAM controller model in the link. The friend who designed it used IS42S16160G. I changed the timing and address sizes according to my own integration.

constant CL : integer := 2;
constant tRCD : integer := 2;
constant tRP : integer := 2;
constant tRAS : integer := 4;
constant tRC : integer := 7;
constant tREF : integer := 64;

In the test program I designed, I printed the values I specified in the addresses below and then had them read.

Address -> Value

1024 -> 3000 + state
2097152 -> 16000 + state
2048 -> 12000 + state
8192 -> 6800 + state
16384 -> 1800 + state
32768 -> 5862 + state

As seen in the picture, the data I wrote was read correctly.
true_read.PNG


However, if I change any address or address content and read, the address content is read incorrectly. I changed the address content of 2097152 to 19000. He read this address correctly, but read 1024 as 1814.
false_read.PNG


Sometimes it reads incorrectly on the first load. Why is it reading incorrectly this way?

SDRAM: https://bertantaskin.com/fpga-ile-sdr-sdram-kontrolu/

SDRAM Test: https://github.com/onur94/FPGA/blob/master/SDRAM_Controller_Fifo.vhd
 

Well I only see that 5 We pulses have occurred and the last one for 1024 isn't produced.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top