Skip to content

Commit

Permalink
Merge pull request #47 from VanhGer/master
Browse files Browse the repository at this point in the history
fix memory padding function
  • Loading branch information
aszepieniec authored Jul 10, 2024
2 parents 13f674f + fb828bd commit f8e4300
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/memory_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ def derive_matrix(processor_matrix):
def pad(self):
one = self.matrix[0][MemoryTable.cycle].field.one()
while len(self.matrix) & (len(self.matrix) - 1) != 0:
self.matrix += [self.matrix[-1][MemoryTable.cycle] + one, self.matrix[-1]
[MemoryTable.memory_pointer], self.matrix[-1][MemoryTable.memory_value], one]
self.matrix.append([self.matrix[-1][MemoryTable.cycle] + one, self.matrix[-1]
[MemoryTable.memory_pointer], self.matrix[-1][MemoryTable.memory_value], one])

@staticmethod
def transition_constraints_afo_named_variables(cycle, address, value, dummy, cycle_next, address_next, value_next, dummy_next):
Expand Down

0 comments on commit f8e4300

Please sign in to comment.