- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I implemented some of the M9K memory blocks in Nios2 as dual port RAM for exchanging data with the outside.
Both memory width is 16bit.
There was no problem when using Nios2/e as the CPU, but after changing the CPU to Nios2/f, I could not read data from the outside.
Please let me know if you have any suggestions on how to deal with this problem, or when changing from Nios2/e to Nios2/f.
Software
#define S_AREA (ONCHIP_MEMORY2_1_BASE + 0x100)
#define SSTATUS (*( volatile uint16_t * )( S_AREA + 0 ))
SSTATUS = 0x002f;
*Uses Google Translate
Original
外部とのデータのやり取りのためにNios2にM9KメモリブロックのいくつかをデュアルポートRAMとして実装しました。
メモリ幅は双方とも16bitとしています。
CPUとしてNios2/eを使用しているときは問題無かったのですが、CPUをNios2/fに変更したら外部からデータが読み出せなくなりました。
この問題に対処する方法、またはNios2/eからNios2/fに変更する際の注意点などありましたらご教示ください。
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Specifically, in Qsys, all of Instruction Cache, Flash Accelerator, and Data Cache in the Caches and Memory Interface tab of Nios2 Processor are set to NON. It may be fine to disable only the Data Cache, but since I achieved the purpose, I have not checked with other enabled.
具体的にはQsysで Nios2 Processor の Caches and Memory Interface タブ内の Instruction Cache, Flash Accelerator, Data Cache を全て NON にしました。Data Cacheだけディセーブルにすれば良いのかも知れませんが、目的を達成できたので、その他を有効にしての確認はしていません。
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Specifically, in Qsys, all of Instruction Cache, Flash Accelerator, and Data Cache in the Caches and Memory Interface tab of Nios2 Processor are set to NON. It may be fine to disable only the Data Cache, but since I achieved the purpose, I have not checked with other enabled.
具体的にはQsysで Nios2 Processor の Caches and Memory Interface タブ内の Instruction Cache, Flash Accelerator, Data Cache を全て NON にしました。Data Cacheだけディセーブルにすれば良いのかも知れませんが、目的を達成できたので、その他を有効にしての確認はしていません。

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page