RISC-V-On-PYNQ icon indicating copy to clipboard operation
RISC-V-On-PYNQ copied to clipboard

Testing the Tutorial Overlay under 4-Packaging-An-Overlay: NameError: name 'BramProcessor' is not defined

Open Deepakpy opened this issue 3 years ago • 1 comments

I am using the tutorial.bit and tutorial.tcl files under \PYNQ-RISC-V\riscvonpynq\picorv32\tut\gold, As per the skipping steps in Notebook mentioned under https://github.com/drichmond/RISC-V-On-PYNQ/blob/master/notebooks/tutorial/2-Creating-A-Bitstream.ipynb.

When I try to follow the tutorial in https://github.com/drichmond/RISC-V-On-PYNQ/blob/master/notebooks/tutorial/4-Packaging-An-Overlay.ipynb below issues were encountered:

  1. It was asked to copy the tutorial.bit and tutorial.tcl to /home/xilinx/RISC-V-On-PYNQ/tutorial/riscv/ on pynq board. However the tutorial directory didn't exist and I have copied the files to /home/xilinx/RISC-V-On-PYNQ/riscvonpynq/picorv32/tut
  2. It was asked to create a init.py file under /home/xilinx/RISC-V-On-PYNQ/tutorial/riscv/notebooks which did not exist and have created under /home/xilinx/RISC-V-On-PYNQ/riscvonpynq/picorv32/tut
  3. When following the Testing the Tutorial Overlay under 4-Packaging-An-Overlay.ipynb below issue occurred: image

Please let me know how to solve this issue

Deepakpy avatar Jul 05 '21 10:07 Deepakpy

As the code pointed the BramProcessorvariable was never instantiated in the tutorial.py. However, tutorial.py mentioned in gold directory has another tutorial.py which has an import for BramProcessor from riscvonpynq.Processor import BramProcessor which solved the above issue. However the %%riscv test overlay still says could not find IP image

Deepakpy avatar Jul 09 '21 09:07 Deepakpy