diff --git a/src/finn/custom_op/fpgadataflow/streamingfclayer_batch.py b/src/finn/custom_op/fpgadataflow/streamingfclayer_batch.py index ea6922123a1334a7ea0d0568e09c043e06490f38..ee4990897f5aa5c4c5cff23aa87d854a2ecaae56 100644 --- a/src/finn/custom_op/fpgadataflow/streamingfclayer_batch.py +++ b/src/finn/custom_op/fpgadataflow/streamingfclayer_batch.py @@ -743,8 +743,9 @@ class StreamingFCLayer_Batch(HLSCustomOp): wei = npy_to_rtlsim_input( "{}/weights.npy".format(code_gen_dir), export_wdt, wnbits ) + num_w_reps = np.prod(self.get_nodeattr("numInputVectors")) io_dict = { - "inputs": {"in0": inp, "weights": wei}, + "inputs": {"in0": inp, "weights": np.tile(wei, num_w_reps)}, "outputs": {"out": []}, } self.rtlsim_multi_io(sim, io_dict) diff --git a/src/finn/transformation/fpgadataflow/create_stitched_ip.py b/src/finn/transformation/fpgadataflow/create_stitched_ip.py index 6e9ce35634760c06c7a409fb5befdb94a08e9c7d..aa5de589a75d81ddfa7924a123630d721368fec0 100644 --- a/src/finn/transformation/fpgadataflow/create_stitched_ip.py +++ b/src/finn/transformation/fpgadataflow/create_stitched_ip.py @@ -408,7 +408,7 @@ class CreateStitchedIP(Transformation): tcl.append("ipx::update_checksums [ipx::find_open_core %s]" % block_vlnv) tcl.append("ipx::save_core [ipx::find_open_core %s]" % block_vlnv) # export list of used Verilog files (for rtlsim later on) - tcl.append("set all_v_files [get_files -filter {FILE_TYPE == Verilog}]") + tcl.append("set all_v_files [get_files -filter {FILE_TYPE == Verilog && USED_IN_SYNTHESIS == 1} ]") v_file_list = "%s/all_verilog_srcs.txt" % vivado_stitch_proj_dir tcl.append("set fp [open %s w]" % v_file_list) # write each verilog filename to all_verilog_srcs.txt