Open multi files in verilog testbench

Status
Not open for further replies.

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.
 

Hello,

could be possible using $sformat() system task and string manipulation. But I didn't try cause I use generally VHDL testbenches.

Regards,
Frank
 

Fvm, thanks a lot. I have try it and it work well.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…