仿真平台内核初版 -tlib库 包含<sparc arm riscv powerPC>
This commit is contained in:
16
scripts/pydev/ticker.py
Normal file
16
scripts/pydev/ticker.py
Normal file
@@ -0,0 +1,16 @@
|
||||
INIT_VALUE = 1
|
||||
STEP = 2
|
||||
|
||||
if request.IsInit:
|
||||
lastVal = 0
|
||||
step = 1
|
||||
elif request.IsUser:
|
||||
if request.Offset == INIT_VALUE:
|
||||
lastVal = request.Value
|
||||
elif request.Offset == STEP:
|
||||
step = request.Value
|
||||
else:
|
||||
lastVal = lastVal + step
|
||||
request.Value = lastVal
|
||||
|
||||
self.NoisyLog("%s on TICKER at 0x%x, value 0x%x" % (str(request.Type), request.Offset, request.Value))
|
||||
Reference in New Issue
Block a user