10 -- Begin Signature -------------------------------------------------
13 Some types to describe encodings of memory state and the
14 communication to memory
17 type ArrayDesc i v = ((i,i),[(i,i,v)])
19 type InstrMemoryState w i = ArrayDesc w i
20 type MemoryState w i = (InstrMemoryState w i,DataMemoryState w)
21 type DataMemoryState w = ArrayDesc w w
23 data WordSize = Byte | HalfWord | FullWord
24 deriving (Eq,Show, Read)
26 data LoadStoreOp = Load WordSize Sign
29 deriving (Eq,Show, Read)
34 data ArrReq i a = ReadArr i |
36 WriteFn i (a -> a) | -- modify contents at location i
41 data ArrResp i a = ReadVal a |
47 -- End Signature -------------------------------------------------------