memRegLock updated, top level for xilinx, tests added