fixed dram read/write bugs. hacked the mig sim model to be fast enough