Do you really need this patch? Isn't it enough to just set the DEBUG parameter in the instantiation of the ddr model?