modefied gmii_rec.v