MATLAB: In R2018a, how can I force HDL Coder to generate HDL code for a lookup table to use RAM or Block RAM bramHDL Coderlut I want to ensure that my LUT gets mapped to RAM by my synthesis tool. How can I ensure the generated HDL code will indicate this to the synthesis tool? Best Answer RAM can be enforced in a synthesis tool by using synthesis attributes in the generated HDL code.Currently (R2018a), HDL Coder does not have the ability to insert these synthesis attributes.However, a common modeling pattern for lookup tables produces HDL code that is usually mapped to RAM:https://www.mathworks.com/help/releases/R2018a/hdlcoder/examples/getting-started-with-ram-and-rom-in-simulink.html#d119e6246If this approach does not map to RAM for a particular model, please contact MathWorks Technical Support. Related SolutionsMATLAB: Matlab Profiler for RAM http://undocumentedmatlab.com/blog/profiling-matlab-memory-usage/http://undocumentedmatlab.com/blog/undocumented-profiler-options/ MATLAB: Storing data in RAM doc persistent? Related QuestionHDL Coder reset – asynchronous and synchronous possibleAbout hdlsllib/HDL RAMs blocksHdl coder ram usage and source optimizaion
Best Answer