please do for modelsim vlib work vmap work work compiledataflashDF.do for testing opcodes Buffer 1 write Buffer 2 write Buffer 1 to main memory page program with built in Erase Buffer 2 to main memory page program with built in Erase main memory page to buffer 2 transfer main memory page to buffer 1 transfer buffer 1 read buffer 2 read *************************************************8 compiledataflashCE.do for testing opcodes chip erase ***************************************************** compiledataflashE.do for testing opcodes Page erase Block Erase sector erase ************************************************ compiledataflashRR.do for testing opcodes Enable sector protection Disable sector Protection Erase sector protection register Program sector lock down Register Program security register Program sector protection register Status Register Read Manufacturing ID Read Deep power down Resume from deep power down Read sector protection register Read security register Read sector lock down register ************************************************* compiledataflashMEM.do for testing opcodes main memory page program through buffer 1 Auto page rewrite through buffer 1 main memory page read main memory continuous array read *************************************************** compiledataflashBPS.do for testing opcodes binary page setup buffer 2 write buffer 2 to main memory page program with out built in erase. main memory page compare with buffer 1 main memory to buffer 1 transfer ******************************************************** For all simulatcases you have simulate only one test becnh top vsim work.tb_Dataflashtestbench run -all or at modelsim> prompt do simcommon.do run -all if needed add wave -r * to view all waveforms