標題: Nios II中使用onchip ram 出現(xiàn)can not place all ram cell in design的問題 [打印本頁]
作者: bibi 時間: 2015-4-19 01:21
標題: Nios II中使用onchip ram 出現(xiàn)can not place all ram cell in design的問題
Abstract:
最近使用NiosII 中onchip ram出現(xiàn)了can not place all ram cell in design的問題,最后發(fā)現(xiàn)是
超出了FPGA ram的容量。本人使用的是EPC2 5系列的FPGA。
Introduction:
Onchip RAM是很占用FPGA內(nèi)部RAM的,一般都用4K byte,但4Kbyte跑一些程序還是不行的,最好是用外部SDRAM。
CycloneII 系列 RAM 資源如下圖:
看來,F(xiàn)PGA中的memory資源還是有限的。
另外使用三種不同的CPU,使用的ram也不一樣。使用S和F型的CPU時候會有cache,cache也是需要占用ram的,這就是為什么一開始使用E的cpu沒有問題,后來使用F的cpu出現(xiàn)了“can not place all ram cell in design”的問題的原因。
可以將下圖中紅色部分的4K改小一些,一般1K也就差不多了。O(∩_∩)O~
精簡component,最后編譯結果如下:
total memory bits使用了72%!
Conclusion:
NiosII還是盡量不要使用onchip ram,這樣會占用太多FPGA memory資源。
| 歡迎光臨 (http://www.raoushi.com/bbs/) |
Powered by Discuz! X3.1 |