target/tcl: Add 'read_memory' and 'write_memory'