Hi,
I have generated a random data for my [1023:0] Memory and I have saved it into a text file. I want to read this textfile into my driver class and I treid using the below command.
$readmemb(“search.txt”, Searchmem)
However I am getting an error. Can I please know if there is any other way to read text file and put back in my Searchmem reg?
Thanks in advance
I have a similar query posted above.
I would like to drive some signls of my driver by reading an external .txt file as input data (backdoor door initialization).
I tried reading the file using
$readmemh(“abcd.txt”,mem);
from a task, But I see the output going XX.
Though in other thread you said the driver pin wiggling should be programmed using sequences, here I the data of an image. I have to read this image data throgh axi slave and then drive it to the dut.
One way I can think of is using a DPI to C and assign the value to a local variable in driver, but not sure.
Can you help me in solving this.
Thanks in Advace,