- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Firsr I built a project includes Nios II ,memories ,it works.
When I added a DDR2 SDRAM controller, not only the DDR2 does't work but also the system . The pin assignment has been finished. Who can tell me why? Thank you!Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
which types of errors that you are getting?
and what is your program memory,reset and exception memories?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No error,but the system cannot work.
program memory,reset and exception memoriesare onchip memory.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- which types of errors that you are getting? and what is your program memory,reset and exception memories? --- Quote End --- Simulation is OK ,but cannot download.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does the nios2-download tells you that the processor can not be paused? --> check the reset signals for DDR2 controller (High Performance DDR2 Controller with Altmemphy has a reset_n signal as a top level port for the SOPC Builder System).
Does the nios2-download tells you Verify Failed? --> If you are downloading to DDR2 there may be problems with signal integrity. Try to build a memtest to run from internal memory. I assume that by "download" you mean that you are trying to download a program. I would not give to much confidence to simulation when a designed based on Altemphy or uniphy are included in the project because these two *phy do not support post fitting simulation (found in the user guides).- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Does the nios2-download tells you that the processor can not be paused? --> check the reset signals for DDR2 controller (High Performance DDR2 Controller with Altmemphy has a reset_n signal as a top level port for the SOPC Builder System). Does the nios2-download tells you Verify Failed? --> If you are downloading to DDR2 there may be problems with signal integrity. Try to build a memtest to run from internal memory. I assume that by "download" you mean that you are trying to download a program. I would not give to much confidence to simulation when a designed based on Altemphy or uniphy are included in the project because these two *phy do not support post fitting simulation (found in the user guides). --- Quote End --- Thank you! Yes ,I am trying to download a program to Stratix III 340.I ues Quartus10.1 and Nios Eclipse. In the project ,I only add the DDR2 SDRAM controller and don't use it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You do not use it, fine. I am quite sure that with the altmemphy based DDR2 controller, a reset_n signal appears in the SOPC Builder. It may appear even with the uniphy based controller (never used it). Are you sure this reset is correctly connected? If left floating or grounded it may give a reset to the controller, I am not sure that the controller while in reset do not asks for a system reset.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- You do not use it, fine. I am quite sure that with the altmemphy based DDR2 controller, a reset_n signal appears in the SOPC Builder. It may appear even with the uniphy based controller (never used it). Are you sure this reset is correctly connected? If left floating or grounded it may give a reset to the controller, I am not sure that the controller while in reset do not asks for a system reset. --- Quote End --- Does the reset_n signal you said affect downloading the program? I know it affect simulation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That reset signal affects also the physical behaviour.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- That reset signal affects also the physical behaviour. --- Quote End --- What should I do? Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It depends on your design. If you have a reset button and it has the correct polarity, try connecting it. Or you can connect it to a bit of a PIO if you want the system to self reset.
If these signals are active high while the reset_n is active low, put a NOT gate. I think that someone else, just yesterday, had a similar problem and went around it stucking the reset_n to high level (a signal fixed to '1' or a VCC primitive in bdf file)- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In normal mode,the ddr2 works well,large numbers of datas of writing and reading is well.Now I want to read data from files on my PC and write to DDR2 .I watch results in the debug windows.The first time the write is OK,but if I change some code ,and debug again ,the result maybe wrong.Always like this.And sometims it give"Processor failed to go into debug mode when requested"
Thank you!- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page