Skip to content
Snippets Groups Projects
Unverified Commit 8e8eb942 authored by Yaman Umuroglu's avatar Yaman Umuroglu Committed by GitHub
Browse files

[Driver] bugfixes in driver template

parent f5d6408d
No related branches found
No related tags found
No related merge requests found
......@@ -107,6 +107,7 @@ class FINNAccelDriver():
def __init__(self, N, bitfile, platform="zynq"):
\"\"\"Instantiate the FINN accelerator driver.
Gets batchsize (N) as integer and path to bitfile as string.\"\"\"
self.platform = platform
self.N = N
# input FINN DataType
self.idt = $INPUT_FINN_DATATYPE$
......@@ -127,7 +128,7 @@ class FINNAccelDriver():
# clock frequency
self.fclk_mhz = $CLOCK_FREQ_MHZ$
# set the clock frequency as specified by user during transformations
if fclk_mhz > 0:
if self.fclk_mhz > 0:
Clocks.$CLK_NAME$ = self.fclk_mhz
self.dma = self.ol.axi_dma_0
self.ctrl_regs = self.ol.resize_accel_0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment