Forum Discussion
Altera_Forum
Honored Contributor
8 years agoHow to infer MLAB memory?
I have a simple memory code (* ramstyle = "MLAB" *) module memory_module # (parameter addr_width = 8, data_width = 32) (input clk, input [...
Altera_Forum
Honored Contributor
8 years agoTry to add (* ramstyle = "MLAB" *) just before reg [data_width-1:0]...
Also, try lower addr_width. Maximum depth for a MLAB is 32. You have addr_width=8 which corresponds to depth 256. The compiler might make it work with lots of multiplexers, but may also decide not to bother, ignore the attribute, and put the whole construct into a M9K/M10K/M20K instead.