| Copyright | (c) ForSyDe Group KTH 2007-2008 |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | forsyde-dev@ict.kth.se |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell98 |
ForSyDe.Shallow.Utility.Memory
Description
This module contains the data structure and access functions for the memory model.
Documentation
The data type Memory is modeled as a vector.
The data type Access defines two access patterns.
Constructors
| Read Adr | 'Read adr' reads an address from the memory. |
| Write Adr a | 'Write Adr a' writes a value into an address. |
newMem :: MemSize -> Memory a Source #
The function newMem creates a new memory, where the number of
entries is given by a parameter.