Fixed incorrect assignment to the dout register.
Fixed incorrect initial values.