Forum Discussion
Altera_Forum
Honored Contributor
11 years agoNone of those will work. As I said before you can't use localparams, and it won't recognize your log2 function either. You need to have your width directly as a top level parameter, instead of the value in kilobytes.
If you really want to be able to specify your memory size in kbytes in the GUI, you can apply the log2 function to convert it to a width in the hw_tcl script.