Use the memory input instead of the control input to find the membar. Reviewed-by: kvn, neliasso
Reviewed-by: darcy, ihse