Fix register memory component

1. Set sensitivity list
2. fix indexing into memory region
3. Update testbench