Skip to content
Snippets Groups Projects
Commit 210ab9e5 authored by auphelia's avatar auphelia
Browse files

Merge branch 'dev' into feature/QuantAvgPool2dNHWC

parents 91f08541 d000c97d
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ Requirements
* A working Vivado 2019.1 installation
* A `VIVADO_PATH` environment variable pointing to the Vivado installation directory (e.g. the directory where settings64.sh is located)
* (optional) A PYNQ board with a network connection
* the ``bitstring`` package must be installed on the PYNQ: ``sudo pip install bitstring``
* the ``bitstring`` package must be installed on the PYNQ: ``sudo pip3 install bitstring``
Running FINN in Docker
======================
......
......@@ -290,12 +290,15 @@ class StreamingFCLayer_Batch(HLSCustomOp):
return out_width
def get_weightstream_width(self):
"""Returns weight stream width. Used in decoupled mode."""
pe = self.get_nodeattr("PE")
simd = self.get_nodeattr("SIMD")
wp = self.get_weight_datatype().bitwidth()
w_width = pe * simd * wp
return w_width
"""Returns weight stream width. Used only in decoupled mode."""
if self.get_nodeattr("mem_mode") == "decoupled":
pe = self.get_nodeattr("PE")
simd = self.get_nodeattr("SIMD")
wp = self.get_weight_datatype().bitwidth()
w_width = pe * simd * wp
return w_width
else:
return 0
def get_weightstream_width_padded(self):
"""Returns weight stream width padded to a multiple of 8. This is required
......
......@@ -99,6 +99,7 @@ set_top $config_toplevelfxn
open_solution sol1
set_part $config_proj_part
config_compile -ignore_long_run_time -disable_unroll_code_size_check
config_interface -m_axi_addr64
config_rtl -auto_prefix
$EXTRA_DIRECTIVES$
......
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