Skip to content

Commit

Permalink
Remove write_u8.
Browse files Browse the repository at this point in the history
  • Loading branch information
thealmarty committed Apr 15, 2024
1 parent 44b2438 commit 2513c94
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions memory/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,6 @@ impl MemoryChip {
self.cells.insert(address, value.into());
}

/// Write a byte value to the least significant byte, and write zeros to the other 3 bytes.
pub fn write_u8(&mut self, clk: u32, address: u32, value: u8, log: bool) {
let value_word = Word::from_u8(value);
if log {
self.operations
.entry(clk)
.or_insert_with(Vec::new)
.push(Operation::Write(address, value_word));
}
self.cells.insert(address, value_word);
}

pub fn write_static(&mut self, address: u32, value: Word<u8>) {
self.cells.insert(address, value.clone());
self.static_data.insert(address, value);
Expand Down

0 comments on commit 2513c94

Please sign in to comment.