main.pxd.in 902 Bytes
Newer Older
1
from awlsim.common.cython_support cimport *
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
from awlsim.core.hardware cimport *

cdef class HardwareInterface_Debug(AbstractHardwareInterface):
	cdef public uint32_t __startupErrorRate
	cdef public uint32_t __startupErrorCount
	cdef public uint32_t __shutdownErrorRate
	cdef public uint32_t __shutdownErrorCount
	cdef public uint32_t __inputErrorRate
	cdef public uint32_t __inputErrorCount
	cdef public uint32_t __outputErrorRate
	cdef public uint32_t __outputErrorCount
	cdef public uint32_t __directReadErrorRate
	cdef public uint32_t __directReadErrorCount
	cdef public uint32_t __directWriteErrorRate
	cdef public uint32_t __directWriteErrorCount

	cdef readInputs(self)
	cdef writeOutputs(self)
	cdef bytearray directReadInput(self, uint32_t accessWidth, uint32_t accessOffset)
21
	cdef ExBool_t directWriteOutput(self, uint32_t accessWidth, uint32_t accessOffset, bytearray data) except ExBool_val