Guest
#4503296
how to find the current line number of a text file im reading
vhdl reading text file finding current line number?
Guest
#4503296
how to find the current line number of a text file im reading felix89 wrote: > how to find the current line number of a text file im reading Usually this is done by "counting"... Just for clarification: WHAT textfile do you read HOW? BTW: if English is not that handy for you then try it in the German forum... https://www.mikrocontroller.net/forum/fpga-vhdl-cpld
Guest
#4503311
You need to count line number by yourself:
Duke
Guest
#4503312
felix89 wrote: > how to find the current line number of a text file im reading RTFM of your Editor.
Guest
#4503359
@straight. lol i meant while reading a text file from a vhdl test bench..btw its my mistake i dint ask the question properly @Lothar Miller. thanks.. i want to actually read 100 lines when my ctrl signal is '0' and 150 line when ctrl signal is '1'
Guest
#4503366
@Lothar Miller. thanks.. i want to actually read 100 lines when my ctrl signal is '0' and 150 lines when ctrl signal is '1'... my test file has 8 bit data in each line felix89 wrote: > my test file has 8 bit data in each line 8 bit = 1 byte? Or do you have a vector with 8 characters in each line inside your file? Something like that: 11001100 01010111 00011100 10010010 11110000 : : All in all: Duke already gave a good hint what to do... ReplyPlease log in before posting. |