MATLAB: Matlab to RTL – Block RAM Enable

HDL Coderram generation hdl coder

An array will get recognized as block RAM. So foo_ary(index) = write_value_at_index will write to the block RAM Question – how to use the enable of the block ram i.e. Above value should be written only when foo_ary_enable is '1'. So on certain index values the array should not be updated, what is the syntax for that? foo_ary_enable is calculated in another loop

Best Answer

Hi Arun,
I am from MathWorks. So, the example was written a while back. Many of the features were developed in later releases. The examples need to be updated - we have not yet done that.
Remember, if you want maximum efficiency (i.e., avoiding additional muxes etc), you should use the system object.