Skip to content

Commit

Permalink
Run make format
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Dudek <[email protected]>
  • Loading branch information
mtdudek committed Oct 3, 2023
1 parent 596b2fa commit 92fa669
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions rowhammer_tester/scripts/playbook/lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@


# returns the number of refreshes issued
def encode_one_loop(*, unrolled, rolled, row_sequence, timings, encoder, bank, rank, refresh_op, payload):
def encode_one_loop(
*, unrolled, rolled, row_sequence, timings, encoder, bank, rank, refresh_op, payload):
tras = timings.tRAS
trp = timings.tRP
trefi = timings.tREFI
Expand All @@ -26,9 +27,12 @@ def encode_one_loop(*, unrolled, rolled, row_sequence, timings, encoder, bank, r
payload.extend(
[
encoder.I(
OpCode.ACT, timeslice=tras, address=encoder.address(bank=bank, row=row, rank=rank)),
encoder.I(OpCode.PRE, timeslice=trp,
address=encoder.address(col=1 << 10, rank=rank)), # all
OpCode.ACT,
timeslice=tras,
address=encoder.address(bank=bank, row=row, rank=rank)),
encoder.I(
OpCode.PRE, timeslice=trp, address=encoder.address(col=1 << 10,
rank=rank)), # all
])
jump_target = 2 * unrolled * len(row_sequence) + local_refreshes
assert jump_target < 2**Decoder.LOOP_JUMP
Expand Down

0 comments on commit 92fa669

Please sign in to comment.