Forum Discussion
Altera_Forum
Honored Contributor
14 years agotest bench problem
sir, i have written a test bench code for my fft processor.here i used .text to import input data into test bench.vhd,but in output it shows only one input through out the simulation cycle. below...
Altera_Forum
Honored Contributor
14 years agodoes "infile1.txt" exist? is it being read correctly? with your code, if there is a problem with the file there is no message telling you this, it just skips the input code.
Try adding this to your infile process: assert (not ENDFILE(inFile) ) report "Reached end of file or there was an error" severity failure. also, with your code, a meta value on the input_tmp would return a 0 to rxn_re. Btw, its a bad habit to leave large bits of code commented out. And Please use the code tags around your code next time.