drichmond / RISC-V-On-PYNQ

RISC-V Integration for PYNQ
Other
165 stars 56 forks source link

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

Open Deepakpy opened 3 years ago

Deepakpy commented 3 years ago

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 commented 3 years ago

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