Generate mem.h from SoC description