Dear all,
I want to ask you about 32-bit flash. At present, I want to use 32bit flash module, when I read cmsdk_ahb_rom.v, I found that if 32bit flash is used, there will be a cmsdk_flash_rom32.v verilog file missing in line 204 of the code, sincerely ask how to solve this problem?
Figure 1 is the 32bit flash I instantiated in cmsdk_mcu.v, Figure 2 is the error position in cmsdk_ahb_rom.v, and Figure 3 is the error I ran in quartus.
图 1 是我的
As it's been a few weeks since you asked this, you've probably worked out the answer to your question, but just in case not, or for anyone else who sees this, hopefully this answers your question.
The "cmsdk_ahb_rom" model can be configured to implement various types of memory, and as you have noted, MEM_TYPE=3 will select a 32-bit FLASH.
And as you have noted, further down in the "cmsdk_ahb_rom" code at line 204 the "cmsdk_flash_rom32" model is instantiated, preceded by a 'cmsdk_ahb_to_flash32" bridge to convert AHB transfers to transfers suited to the FLASH model.
So moving on to the error message you see, it looks like you have not compiled the "cmsdk_flash_rom32" module before compiling the "cmsdk_ahb_rom" module that instantiates it. "cmsdk_flash_rom32" can be found in the same CMSDK directory as the "cmsdk_ahb_rom" model, so hopefully a simple problem to fix in your compile script.
Or is there something that I am missing here ?