projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added first test structures for Am2904 and Am2910
[Mograsim.git]
/
net.mograsim.logic.core
/
src
/
net
/
mograsim
/
logic
/
core
/
components
/
memory
/
WordAddressableMemory.java
diff --git
a/net.mograsim.logic.core/src/net/mograsim/logic/core/components/memory/WordAddressableMemory.java
b/net.mograsim.logic.core/src/net/mograsim/logic/core/components/memory/WordAddressableMemory.java
index
fbb76c2
..
3e83832
100644
(file)
--- a/
net.mograsim.logic.core/src/net/mograsim/logic/core/components/memory/WordAddressableMemory.java
+++ b/
net.mograsim.logic.core/src/net/mograsim/logic/core/components/memory/WordAddressableMemory.java
@@
-26,7
+26,7
@@
public class WordAddressableMemory
public void setCell(long address, BitVector b)
{
if (address < minimalAddress || address > maximalAddress)
public void setCell(long address, BitVector b)
{
if (address < minimalAddress || address > maximalAddress)
- throw new IndexOutOfBoundsException(String.format("Memory address out of bounds! Minimum: %d Maimum: %d Actual: %d",
+ throw new IndexOutOfBoundsException(String.format("Memory address out of bounds! Minimum: %d Ma
x
imum: %d Actual: %d",
minimalAddress, maximalAddress, address));
long page = address / pageSize;
int offset = (int) (address % pageSize);
minimalAddress, maximalAddress, address));
long page = address / pageSize;
int offset = (int) (address % pageSize);