Forum Discussion
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- create a text file and save with extension .tcl (or .do) example: --------------------------------- quit -sim # compile into work vlib ./work vcom -93 -work work ../folder1/folder2/my_file.vhd vcom -93 -work work ../folder1/folder2/my_top_tb.vhd # simulate testbench architecture a, or any file vsim -t ps work.my_top_tb(a) do wave.do radix dec run -a --------------------- to run it type in modelsim command window : do file_name.tcl if you haven't waveform file you can start with an empty one, then after simulation add nodes to the waves. You need to make sure you got altera libraries compiles and appear in modelsim list. --- Quote End --- Hi Kaz, thank you! Actually just after posting my reply earlier, i was able to get it to simulate with all the files. on another forum, i found the vsim command, so i tried 'vsim -i top.vhd, ram.vhd' and it simulated successfully! Then i tried adding signals from my object window to my wave and running the simulation. However, i am now getting an error saying it is unable to load my data initialization file. " Fatal: (vsim-7) Failed to open VHDL file "ram_data.hex" in rb mode. " Is there a way for me to load the memory from my MIF/HEX file for simulation purposes?