Writing into memory and reading from memory

In reply to dave_59:

I pass the byte_data argument value when the task write is called.

write(32'h1234_5678, 32'h01);