Example in project
- First force signals in certain time and then noforce signals after some time.
1 #================================================= 2 # Load program into pmem 3 #================================================= 4 do ../...LoadProgram.tcl 5 LoadProgram ../...Program.dat XXXX 6 7 #================================================= 8 # Force signals for error detect 9 #================================================= 10 # force address 11 when {$now == 8ms} { 12 force -freeze tb_mspmemperip:mut:DMEM:DMEM_ADDR(5) 1 13 } 14 15 when {$now == 10ms} { 16 noforce tb_mspmemperip:mut:DMEM:DMEM_ADDR(5) 17 } 18 19 # force data input 20 when {$now == 16ms} { 21 force -freeze tb_mspmemperiph:mut:DMEM:DMEM_DIN(12) 1 22 } 23 24 when {$now == 20ms} { 25 noforce tb_mspmemperiph:mut:DMEM:DMEM_DIN(12) 26 } 27 28 29 #================================================= 30 # Run sim 31 #================================================= 32 run 25 ms 33 wave zoom full
时间: 2024-09-30 00:15:10