JTAG or boundary scan test of memory devices