Forum Discussion
Altera_Forum
Honored Contributor
15 years agoMost designers use testbench to read/write text files.
you can write your data at will to a file. textio is a vhdl library that allows you access fileio from within vhdl code. .tbl is a pain and I am not sure anybody uses it for any serious work. Matlab can read any text file provided it is only figures (no alphabet or hex), so remove any header text. If you are lucky, your tbl may be just be table of figures then you can read any rows or columns. If your data value is repeated because of valid or clockenable then you can select in Matlab: data = data(find(valid == 1)); or manually choose: data1 = data(1:4:end); %get first sample then discard 3 samples ...