projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Further renaming of length to width
[Mograsim.git]
/
net.mograsim.machine
/
src
/
net
/
mograsim
/
machine
/
standard
/
memory
/
WordAddressableMemory.java
diff --git
a/net.mograsim.machine/src/net/mograsim/machine/standard/memory/WordAddressableMemory.java
b/net.mograsim.machine/src/net/mograsim/machine/standard/memory/WordAddressableMemory.java
index
ee40201
..
2e209f1
100644
(file)
--- a/
net.mograsim.machine/src/net/mograsim/machine/standard/memory/WordAddressableMemory.java
+++ b/
net.mograsim.machine/src/net/mograsim/machine/standard/memory/WordAddressableMemory.java
@@
-112,9
+112,9
@@
public class WordAddressableMemory implements MainMemory
public void setCell(int index, BitVector bits)
{
public void setCell(int index, BitVector bits)
{
- if (bits.
leng
th() != cellWidth)
+ if (bits.
wid
th() != cellWidth)
throw new IllegalArgumentException(String.format(
throw new IllegalArgumentException(String.format(
- "BitVector to be saved in memory cell has unexpected
length. Expected: %d Actual: %d", cellWidth, bits.leng
th()));
+ "BitVector to be saved in memory cell has unexpected
width. Expected: %d Actual: %d", cellWidth, bits.wid
th()));
memory[index] = bits;
}
memory[index] = bits;
}