FboDigit
Member level 1
I want to read a file using Verilog language. The trick is that I want to read only 1 segment of text at a time. I have been able to implement the syntax with VHDL using the READ() statement.
The code look like this.
case(xdata):
...
m : begin
READ(my_line,spaces);
READ(my_line, cmd);
READ(my_line, spaces);
READ(my_line, addr_v);
READ(my_line, spaces);
READ(my_line, data_v);
READ(my_line, spaces);
READ(my_line, mask_v);
The problem is that I a not able to find the equivalent in Verilog.
The line I want to read is formated like this:
"m 6 E0000008 00000080 00000080"
Is there any way to read this kind of file using Verilog/SystemVerilog ???
The code look like this.
case(xdata):
...
m : begin
READ(my_line,spaces);
READ(my_line, cmd);
READ(my_line, spaces);
READ(my_line, addr_v);
READ(my_line, spaces);
READ(my_line, data_v);
READ(my_line, spaces);
READ(my_line, mask_v);
The problem is that I a not able to find the equivalent in Verilog.
The line I want to read is formated like this:
"m 6 E0000008 00000080 00000080"
Is there any way to read this kind of file using Verilog/SystemVerilog ???