summaryrefslogtreecommitdiff
path: root/tb/sim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tb/sim/descifrador.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tb/sim/descifrador.py b/tb/sim/descifrador.py
index 0e0fb71..5d81686 100644
--- a/tb/sim/descifrador.py
+++ b/tb/sim/descifrador.py
@@ -1,10 +1,11 @@
+LOG = 'image_processing/log'
FILE = 'image_processing/out_file'
SIZE = 640 * 480 * 4
START = 0x10000
loads = {START: FILE}
consts = {0x30050000: 1, 0x30060000: 0}
-cycles = 10000000
+cycles = 20000000
mem_dumps = [range(START, START + SIZE)]
def final():
@@ -14,3 +15,5 @@ def final():
words.append(int.from_bytes(data, 'little') ^ 0x00ffffff)
assert_mem(START, words)
+ with open(LOG, 'w') as log:
+ print(read_mem(START, SIZE), file=log)