📄 sync_stim.stc
字号:
# set verbose 3# gpsim# Startup command file for stim_test.hex# Create the processor that's to be simulatedprocessor p16c84 fred# Load the .hex fileload s stim_test.cod# Create a stimulus node:node test_node# Create a square wave stimulus that's 1000 cycles long# and attach it to portb bit 0. The duty cycle is 30%# and the phase is 10%. echo stimulus createstimulus sqw# initial 1start 10000period 1000high_time 300phase 100# port portb 0endecho stimulus createdattach test_node portb0 sa_square_wave# Set a cycle break point on the One hundred thousand'th# execution cyclebreak c 100000# Set a register write break point when 10 (dec) is # written to register 0x20.break wv 0x20 10echo running until the wv break point is hit#runecho running until the cycle break point is hit# run
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -