# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# # Throughputs on Ultra96
#
# This jupyter notebook reflects the throughput values on the final (Maximum AUs deployed) implementation of 
# - FIFO-ONLY
# - HASH-AMAP
# - FULL-AMAP
#
# The results correspond to the Fig.7c in the paper
#
#

import pynq
from au_hardware_fifo_only import *
from au_hardware_full import *
from au_hardware_hash import *

# ## FIFO-ONLY

au = Au_fifo(Height=180, Width=240, bitfile="bitfile/fifo_1024_5_13.bit", au_number=13, fifo_depth=2048)
T = au.test_random(32768, 100) #(number of events, number of tests)

# # HASH-AMAP

au = Au_hash(Height=180, Width=240, bitfile="bitfile/hash_1024_5_18.bit", au_number=16, fifo_depth=1024)
au.test_random(32768, 100) #(number of events, number of tests)

# ## FULL-AMAP

au = Au_full(Height=180, Width=240, bitfile="bitfile/full_1024_5_4.bit", au_number=4, fifo_depth=1024)
au.test_random(32768, 100)

StarcoderdataJupyterScriptsDedupFiltered