- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Problem about write and read data from the psram on the Nexys3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-02-2012 07:13 AM
Hi experts
I am a newer in FPGA.Using the Nexys3 board to learn the abc. Recently i try to write a program to communicate with the PSRAM on the Nexys3.I find it is deadly hard to do that,no mater how i modify the code,it doesn't work.I add a UART to send the data to pc and found that the data i read from the psram that i writed are all ZERO ??
Would you please tell me what's wrong with my code?
here are my code and the psram' s datasheet.
Re: Problem about write and read data from the psram on the Nexys3
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-02-2012 08:35 AM - edited 04-02-2012 08:40 AM
Did you simulate your design to verify
- correct reception by the UART
- writing correct data to the correct psram address
- reading correct address from the psram
- sending correct data by the UART
- resets and clocks working correctly
You mentioned that you added a UART to the design, but the base design should include a UART.
-- Bob Elkind
README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369
Summary:
1. Read the manual or user guide. Have you read the manual? Can you find the manual?
2. Search the forums (and search the web) for similar topics.
3. Do not post the same question on multiple forums.
4. Do not post a new topic or question on someone else's thread, start a new thread!
5. Students: Copying code is not the same as learning to design.
6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please).
7. You are not charged extra fees for comments in your code.
8. I am not paid for forum posts. If I write a good post, then I have been good for nothing.
Re: Problem about write and read data from the psram on the Nexys3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-03-2012 09:35 AM
i count from 0 to 20 and write the number into the ram,then,the next 20 counts,i read from the ram.I have simulated and found that the address bus and timing seems have no question.so i generate the bit directly and program the spartan6.
I have tested that uart work correctly, i think that the problem may lie in the communication with the ram.I also enable the led to show the data,but all the leds is off,when processing read.
I read from the datasheet that it access time is both 70ns.so i use the state machine to read and write.i count from 0 to 9 ,when 1,i set the address , give data and pull down the cs and we, when 8, the write is finished.so i pull up the cs and we.read data is similar.
sense that the nexys3's clk is 100mhz, the write and read time is meetted.so i really don't konw what's wrong.
Re: Problem about write and read data from the psram on the Nexys3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-03-2012 10:58 AM
If you truly believe that you have done a thorough job of verifying your design with logic simulation, and your design does not function as simulated, then you have few options. The first option is to verify with an oscilloscope (or ChipScope) that the hardware matches the simulation.
-- Bob Elkind
README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369
Summary:
1. Read the manual or user guide. Have you read the manual? Can you find the manual?
2. Search the forums (and search the web) for similar topics.
3. Do not post the same question on multiple forums.
4. Do not post a new topic or question on someone else's thread, start a new thread!
5. Students: Copying code is not the same as learning to design.
6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please).
7. You are not charged extra fees for comments in your code.
8. I am not paid for forum posts. If I write a good post, then I have been good for nothing.
Re: Problem about write and read data from the psram on the Nexys3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-03-2012 06:49 PM
ok i'll try a chipscope latter.
Re: Problem about write and read data from the psram on the Nexys3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-04-2012 08:01 AM
i try nearly one day to learn to use the chipscope and found that data writen is right, but read is all zero :-(
so i think that the timing must have problem,here is my simulation on writing screen shoot, can you see anyting wrong on it?
Re: Problem about write and read data from the psram on the Nexys3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-04-2012 08:30 AM
i try nearly one day to learn to use the chipscope and found that data writen is right, but read is all zero
Until you can correctly read the data which has been written, you do not know with certainty that the data is correctly written.
-- Bob Elkind
README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369
Summary:
1. Read the manual or user guide. Have you read the manual? Can you find the manual?
2. Search the forums (and search the web) for similar topics.
3. Do not post the same question on multiple forums.
4. Do not post a new topic or question on someone else's thread, start a new thread!
5. Students: Copying code is not the same as learning to design.
6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please).
7. You are not charged extra fees for comments in your code.
8. I am not paid for forum posts. If I write a good post, then I have been good for nothing.
Re: Problem about write and read data from the psram on the Nexys3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-04-2012 05:34 PM
Re: Problem about write and read data from the psram on the Nexys3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-05-2012 06:37 AM
:-) while waitting for you, I try the FYI first.
Re: Problem about write and read data from the psram on the Nexys3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-07-2012 09:58 AM
:-( It sense that Micron has stop to provide the FYI up until now I can't find the simulate model.











