summaryrefslogtreecommitdiffstats
path: root/awlsim/core/cpu.pxd.in
blob: 7b3dcacf31fded921f70888a965d7da88898d1e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
from awlsim.core.statusword cimport *


cdef class S7CPU(object):
	cdef public object cbCycleExit
	cdef public object cbCycleExitData
	cdef public object cbBlockExit
	cdef public object cbBlockExitData
	cdef public object cbPostInsn
	cdef public object cbPostInsnData
	cdef public object cbPeripheralRead
	cdef public object cbPeripheralReadData
	cdef public object cbPeripheralWrite
	cdef public object cbPeripheralWriteData
	cdef public object cbScreenUpdate
	cdef public object cbScreenUpdateData

	cdef public double now
	cdef public double __nowOffset
	cdef public object specs
	cdef public object prog
	cdef public double cycleTimeLimit
	cdef public object __runtimeLimit
	cdef public bint is4accu
	cdef public bint __obTempPresetsEnabled
	cdef public bint __extendedInsnsEnabled
	cdef public bint mcrActive

	cdef public dict udts
	cdef public dict dbs
	cdef public dict obs
	cdef public dict obTempPresetHandlers
	cdef public dict fcs
	cdef public dict fbs
	cdef public dict sfcs
	cdef public dict sfbs

	cdef public object accu1
	cdef public object accu2
	cdef public object accu3
	cdef public object accu4
	cdef public list timers
	cdef public list counters
	cdef public object flags
	cdef public object inputs
	cdef public object outputs
	cdef public object ar1
	cdef public object ar2
	cdef public object dbRegister
	cdef public object diRegister
	cdef public list callStack
	cdef public object callStackTop
	cdef public list mcrStack
	cdef public S7StatusWord statusWord
	cdef public object __clockMemByteOffset
	cdef public double __nextClockMemTime
	cdef public uint32_t __clockMemCount
	cdef public uint32_t __clockMemCountLCM
	cdef public int32_t relativeJump

	cdef public uint32_t __insnCount
	cdef public uint32_t __cycleCount
	cdef public double insnPerSecond
	cdef public double avgInsnPerCycle
	cdef public double cycleStartTime
	cdef public double minCycleTime
	cdef public double maxCycleTime
	cdef public double avgCycleTime
	cdef public double startupTime
	cdef public double __speedMeasureStartTime
	cdef public uint32_t __speedMeasureStartInsnCount
	cdef public uint32_t __speedMeasureStartCycleCount

	cpdef object fetch(self, object operator, set enforceWidth=*)
	cpdef store(self, object operator, object value, set enforceWidth=*)
bues.ch cgit interface