Forum Discussion
Altera_Forum
Honored Contributor
15 years agoDepends on your testpattern format. The easiest is to use $readmemh/b and read it into a Verilog memory. More fancier approach would be to use $fopen, $fscanf/$fgets etc.
A quick google search for $readmem would give you some syntax to start with. We cover this in good detail during our comprehensive functional verification course. Regards Srini cvcblr.com/blog