Intel:MAX® 10 User Flash Memory (UFM) に初期値ファイル (Word 245760, Size 32) を指定しSynthesis を実行すると下記ワーニングが表示されます。hex ファイルに問題がありますか?
MAX
Nios II
<ワーニングメッセージ>
Warning (113006): Word addressed memory initialization file "***.hex" was read in the byte-addressed format File: /***.hex Line: 1
Warning (113015): Width of data items in "***.hex" is greater than the memory width. Wrapping data items to subsequent addresses. Found 245760 warnings, reporting 10 File: /***.hex Line: 1
Warning (113006): Word addressed memory initialization file "***.hex" was read in the byte-addressed format File: /***.hex Line: 1
Warning (113015): Width of data items in "***.hex" is greater than the memory width. Wrapping data items to subsequent addresses. Found 245760 warnings, reporting 10 File: /***.hex Line: 1
カテゴリ:Quartus® Prime
ツール:Quartus® Prime
デバイス:MAX® 10
Altera On-Chip Flash IP コアでサポートしている初期値ファイルの Addressing モードは下記になっておりました。
.hex: byte addressing
.mif: word addressing
(参考)
MAX 10 User Flash Memory User Guide
https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/max-10/ug_m10_ufm.pdf
(Table 7. Types of Flash Initialization File Supported をご参照ください。)
そのため、.hex にて初期値ファイル作成時には byte (size = 8) にしていただく必要があります。
なお、Altera On-Chip Flash IP コアの Flahs Memory の Sector Address は byte address で表示されているため、Avalon-MM インタフェースでは 32bit address に変換していただく必要があります。
(参考)
MAX 10 User Flash Memory User Guide
https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/max-10/ug_m10_ufm.pdf
(5.3.1 Sector Address の項目をご参照ください。)
上記より、Altera On-Chip Flash IP コアに .hex にて初期値をしていただく場合 8bit の size で生成していただく必要があります。
ツール:Quartus® Prime
デバイス:MAX® 10
Altera On-Chip Flash IP コアでサポートしている初期値ファイルの Addressing モードは下記になっておりました。
.hex: byte addressing
.mif: word addressing
(参考)
MAX 10 User Flash Memory User Guide
https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/max-10/ug_m10_ufm.pdf
(Table 7. Types of Flash Initialization File Supported をご参照ください。)
そのため、.hex にて初期値ファイル作成時には byte (size = 8) にしていただく必要があります。
なお、Altera On-Chip Flash IP コアの Flahs Memory の Sector Address は byte address で表示されているため、Avalon-MM インタフェースでは 32bit address に変換していただく必要があります。
(参考)
MAX 10 User Flash Memory User Guide
https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/max-10/ug_m10_ufm.pdf
(5.3.1 Sector Address の項目をご参照ください。)
上記より、Altera On-Chip Flash IP コアに .hex にて初期値をしていただく場合 8bit の size で生成していただく必要があります。