- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I am running my C program in NiosII and I need to print out the result on the console. There are a 512KB SRAM and an 8MB SDRAM on the board. The program works fine with the SDRAM. However when I changed all the program sections' specification to SRAM in the BSP Editor (in the Nios II SBT), the program can be downloaded to the board but it shows nothing on the NiosII Console. My program is 106KB so should be possible to run in SRAM. Anybody who can tell me possible reasons why it happens?Link Copied
- « Previous
-
- 1
- 2
- Next »
24 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- I feel like a *****, but i tried to make my own tri-state version as suggested by BadOmen; but this failed. I require more help and would be greatly appreciative. It failed the same as before with the .elf failing verification upon download. Likely because i have no idea how to set up the Tri-state controller, i did alot of googling and read some doco and made an attempt anyway. I have attached a zip file with screenshots of my attempt. In summary but my problems were:
- signals?:Couldn't match my SRAM's signals to those avaliable in the Tristate controller. My SRAM has no read enable, it also has two other signals, upper and lower? I took a guess that these two mystery signals could be bridged to WE since they appear optional and a timing diagram where they were used they matched WE.
- parameters had me stumped. I used the preset on the right for the IDT SRAM as a starter. Two worse ones was that driver one since it made no sense what the preset put there. Plus i put the bytes value there, but am i meant to take some off? As in 2MB seems too round?
- timings: I couldn't match the timings. In many cases i made an educated guess or put a worse case value.
- Made simple Qsys design of nios. Onchip ram contains Nios vectors.
- Made tri-state control and connected to a tri-state bridge. note i doubt the control is correct.
- Made top level and bridge the 3 signal WE,UB, LB.
- Made simple "Hello World Nios" and pointed its memory to the SRAM controller.
- Data sheet. Note that its the 8ns model.
- QSys image.
- Tri-state control set up images.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe the ram delays a little to response.
Try to create a PLL clock with 2 clock outputs One with a delay and connect it to de NIOS clock The other clock without delay connect to de ram clock. I had the same problem and solved by PLL whit delay clock (In case 3ns).- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Maybe the ram delays a little to response. Try to create a PLL clock with 2 clock outputs One with a delay and connect it to de NIOS clock The other clock without delay connect to de ram clock. I had the same problem and solved by PLL whit delay clock (In case 3ns). --- Quote End --- Hi man, Can you elaborate please, I'm having awful trouble. nios getting ext clock 50Mhz. SDRAM clock getting -3ns from a pll. Will not work. This is simplified to a sentence, but that's basically it! Cian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Hi man, Can you elaborate please, I'm having awful trouble. nios getting ext clock 50Mhz. SDRAM clock getting -3ns from a pll. Will not work. This is simplified to a sentence, but that's basically it! Cian --- Quote End --- I think you're inverting the clocks... You must have to delay the nios clock by 3ns, and the SDRAM with no delay. Your system will be like this: PLL (external PLL, don't use SOPC or Qsys PLL I don'n know why but did not worked for me): Create a PLL with 2 clock outputs, one for nios one for SDRAM, connect the 0ns delayed direct to the SDRAM input clock (physical pin) and connect the 3ns delayed clock to nios input clock wire, the nios output clock for SDRAM will be disconnected.:)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- « Previous
-
- 1
- 2
- Next »