Feb 19, 2008 #1 C cnspy Full Member level 3 Joined Sep 10, 2002 Messages 150 Helped 5 Reputation 10 Reaction score 1 Trophy points 1,298 Activity points 1,041 I have to open a lot of file as file1.txt file2.txt .... file1024.txt How to open these kind of file name with simple method in verilog? Such as use loop for it? thanks.
I have to open a lot of file as file1.txt file2.txt .... file1024.txt How to open these kind of file name with simple method in verilog? Such as use loop for it? thanks.
Feb 19, 2008 #2 FvM Super Moderator Staff member Joined Jan 22, 2008 Messages 52,413 Helped 14,749 Reputation 29,780 Reaction score 14,097 Trophy points 1,393 Location Bochum, Germany Activity points 298,069 Hello, could be possible using $sformat() system task and string manipulation. But I didn't try cause I use generally VHDL testbenches. Regards, Frank
Hello, could be possible using $sformat() system task and string manipulation. But I didn't try cause I use generally VHDL testbenches. Regards, Frank
Feb 20, 2008 #3 C cnspy Full Member level 3 Joined Sep 10, 2002 Messages 150 Helped 5 Reputation 10 Reaction score 1 Trophy points 1,298 Activity points 1,041 Fvm, thanks a lot. I have try it and it work well.