📄 async_stim2.stc
字号:
# another test stimulation file## the '#' marks the beginning of a comment ## Define an asynchronus stimulus## This stimulation file illustrates how the stimulus command # may span several lines of input. The only requirement# is that 'end' must be the last statement (of the stimulus)echo Sample asynchronous stimulus file# Create the processor that's to be simulated# processor p16c84 fred# Load the .hex fileload s stim_test.codset verbose 0xffstimulus asynchronous_stimulus # or we could've used asy# The initial state AND the state the stimulus is when# it rolls overinitial_state 1# all times are with respect to the cpu's cycle counterstart_cycle 100# the asynchronous stimulus will roll over in 'period'# cycles. Delete this line if you don't want a roll over.period 5000# Now the cycles at which stimulus changes states are# specified. The initial cycle was specified above. So# the first cycle specified below will toggle this state.# In this example, the stimulus will go high at cycle 100# and then go low at cycle 200, high at 300, and so on203 0300 1400 0600 11000 03000 1# specify the ioport that this stimulus drives# starting with 0.0.5# you'll want to specify the port connection# with the attach command - but, this still works.# port portb 0# Give the stimulus a name:name asy_test# Finally, tell the command line interface that we're done# with the stimulusend# but we can still have more stuff# Create a stimulus node:node test_node# Now attach the stimulus to an I/O port# Note, the I/O ports are given the name# portxn where x = a,b,c, etc# and n is the bit within the I/O portattach test_node asy_test portb0break wv 0x20 0x10break c 1000000set verbose 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -