compiling register.v