|
| ForSyDe.Shallow.Memory | | Portability | portable | | Stability | experimental | | Maintainer | forsyde-dev@ict.kth.se |
|
|
|
| Description |
| This module contains the data structure and access
functions for the memory model.
|
|
| Synopsis |
|
|
|
| Documentation |
|
|
| The data type Memory is modeled as a vector.
| | Constructors | | Instances | |
|
|
|
| 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.
|
| Instances | |
|
|
|
|
|
|
|
| The function newMem creates a new memory, where the number of entries is given by a parameter.
|
|
|
| The function memState gives the new state of the memory, after an access to a memory. A Read operation leaves the memory unchanged.
|
|
|
| The function memOutput gives the output of the memory after an access to the memory. A Write operation gives an absent value as output.
|
|
| Produced by Haddock version 2.1.0 |