For context:
I have a project that requires me to develop a CNN (in Python) that generates weights and put that neural network inside an FPGA (I used hls4ml for this from python to fpga firmware). The neural network generates weights and those weights are then transported into another memory system that is external to the FPGA, but before going to that external memory it has to go through a couple circuits (which I have already designed and are in verilog). Also, since I put the CNN in the PYNQ-Z2 using hls4ml, I can retrieve the verilog code of that.
So, if I have the neural network and the weights inside the FPGA, as well as those circuit modules, how can I output the weights into the circuit module and test if the output is correct?