davyzhu
Advanced Member level 1
verilog concatenation
Hi all,
I want to open a lot of files and read data to reg.
something like
//-----code--------
$readmemh(".\pattern\0.dat",inmem0);
$readmemh(".\pattern\1.dat",inmem1);
...
$readmemh(".\pattern\49.dat",inmem49);
//-----code end----
I want to use something like strcat() in C to concatenate the string.
So, I can use a loop to replace large block of code above.
Is there any method to do this work in Verilog?
Any suggestions will be appreciated!
Best regards,
Davy
Hi all,
I want to open a lot of files and read data to reg.
something like
//-----code--------
$readmemh(".\pattern\0.dat",inmem0);
$readmemh(".\pattern\1.dat",inmem1);
...
$readmemh(".\pattern\49.dat",inmem49);
//-----code end----
I want to use something like strcat() in C to concatenate the string.
So, I can use a loop to replace large block of code above.
Is there any method to do this work in Verilog?
Any suggestions will be appreciated!
Best regards,
Davy