Forum Discussion
Altera_Forum
Honored Contributor
9 years agoHi, Mr.Rysc.
I'm back. After reading the reference document about function $readmemb and $readmemh, I found they still need a file generated out of quartus's synthesis process. So that didn't meet my requirement. And for my another test about using ' dont_replicate ' attribute, unfortunately, it didn't work nevertheless. But the problem is solved in another way. I picked the code referenced with ROM out and wrote a seperate dual-port ROM module , and instantiated it in the original module. After synthesis I found the onchip ram block consumed by module had been reduced. So I think the problem is caused by the too much functions in a single module, and maybe it puzzled the synthesis tool.