Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- The recommended HDL style does not use more RAM than required. The suggestion by Daixiwen to make Quartus infer a seperate 8-bit wide RAM block for each byte enable uses more RAM than required when the RAM size needed is less than the (block size) * (number of byte enables). --- Quote End --- Daxiwen mentioned the byte enable example in the "Recommended HDL Style" document. You say, that the recommended HDL style does not use more RAM than required. So what's the problem? Did you try the method suggested in the document? P.S.: --- Quote Start --- It "works", but the parameterization is broken in that the module body must be changed to support a different data width. --- Quote End --- What do you mean with module body? The memory module or calling function? Accessing the RAM in bytes as required by the recommended coding style involves a change in the memory module. But it can be completely hidden inside the module.