Adding logic and structure to make the w_mem testbench start up.