N
Niv (KP)
In my testbench, is it possible to write to a file, then read that
file, then write to the file again, then read the file again, etc etc.
It doesn't matter if the file is re-opened and destrots the previous
data written.
Seem to be having trouble doing this.
i.e. in my tb, unit 1 writes several lines of binary data (as text) to
file A, then unit 2 needs to read this file A before it then writes
out other data to file B.
This is then repeated several times/
file, then write to the file again, then read the file again, etc etc.
It doesn't matter if the file is re-opened and destrots the previous
data written.
Seem to be having trouble doing this.
i.e. in my tb, unit 1 writes several lines of binary data (as text) to
file A, then unit 2 needs to read this file A before it then writes
out other data to file B.
This is then repeated several times/