Hi,
Dofiles are TCL scripts. In VHDL, using GENERICs at the top level of your TB, you can then change parameters through the TCL script.
I tend to not rely on waveforms, but assertions within the testbench (self checking testbench). So I run iterations of the simulation, using generics to modify the simulation characteristics.
Unfortunately I cannot help with NativeLink... but I'll look that up.
Here's a snippet from a dofile I wrote a while back.
prbs_tester_tb is the testbench.
This runs 4 simulations, changing the PRBS files and UUT characteristics each time.
puts "******************************************************************"
puts "Running the NNNNN simulation"
puts "******************************************************************"
vsim -gPATTERN_IN=O"1" -gLFSR_SEL=X"F" -gSTIM_FILE="./stim/lfsr_F__trib10.dat" -gTRIB_IN=X"10" prbs_tester_tb
run 4 ms
vsim -gPATTERN_IN=O"1" -gLFSR_SEL=X"D" -gSTIM_FILE="./stim/lfsr_D__trib12.dat" -gTRIB_IN=X"12" prbs_tester_tb
run 4 ms
vsim -gPATTERN_IN=O"1" -gLFSR_SEL=X"C" -gSTIM_FILE="./stim/lfsr_C__trib03.dat" -gTRIB_IN=X"03" prbs_tester_tb
run 4 ms
vsim -gPATTERN_IN=O"1" -gLFSR_SEL=X"E" -gSTIM_FILE="./stim/lfsr_E__trib71.dat" -gTRIB_IN=X"71" prbs_tester_tb
run 4 ms
Jerry