Register memory R/W

1. Modify register memory access to select r/w operations
2. Integrate register r/w to connected components