Add meram_get_required_memory_size

With this method, the required MERAM memory size can be calculated
from the buffers stride and required number of MERAM lines.