sarit8
Newbie level 6
I have a file with multiple lines with the following structerer,ACFE13D5,00000000
w,FE1234AC,00000000
The mid value is hexa adreess, and the last value should be data with lengh of 32 bit(also hexa).
What is the simple way ro read such a file and get the values into the following transaction prototype:
direction_enum rw; // where- typedef enum { READ = 0, WRITE = 1 } direction_enum;
bit [31:0] addr;
bit [31:0] data;