Xilinx / BNN-PYNQ

Quantized Neural Networks (QNNs) on PYNQ
https://xilinx.github.io/finn/
BSD 3-Clause "New" or "Revised" License
671 stars 306 forks source link

Building the project in VHDL instead of Verilog #131

Closed MuBadawy closed 4 years ago

MuBadawy commented 4 years ago

Hey, during rebuilding the project in vivado, the project generated files are in verilog. Is there anyway to get these generated files in VHDL instead. I tried to change the target language after building the project but it looks like it's not a good idea. I am beginner so I'd appreciate if there is a way to achieve that.

Thanks,

giuliogamba commented 4 years ago

What are you trying to achieve? The Vivado HLS project generates both Verilog and VHDL, you can check the generated code under src/network/output/hls-syn/"your_network"/sol1/impl

MuBadawy commented 4 years ago

I was trying to have the VHDL files in the Vivado project (xpr file) itself to work on them and manipulate them. I have another question though, whicj HDL files are responsible for the XNOR operation between the weights and the activations?

giuliogamba commented 4 years ago

Within the Vivado HLS GUI, you can open the project, move on the Analysis pane and you can check the naming given to all variables after the HLS synthesis, and you that as a reference to check the portion of HDL code you want to analyze.