Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VTA] Add VTA PYNQ metal_test bitstream program logic and fix compile issue. #3400

Merged
merged 2 commits into from
Jun 25, 2019

Conversation

huajsj
Copy link
Contributor

@huajsj huajsj commented Jun 19, 2019

Issue:
VTAProgram not exist and cause compile error.
No logic to program the bitstream into FPGA.
metal test still use pynq 2.1 library which not support on latest
pynq 2.4.

Solution:
remove old VTAProgram.
when setting is pynq, program the bitstream during compile.
change DMA link library to libcma.

Thanks for contributing to TVM! Please refer to guideline https://docs.tvm.ai/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from Reviewers.

…compile issue.

Issue:
VTAProgram not exist and cause compile error.
No logic to program the bitstream into FPGA.
metal test still use pynq 2.1 library which not support on latest
pynq 2.4.

Solution:
remove old VTAProgram.
when setting is pynq, program the bitstream during compile.
change DMA link library to libcma.
@huajsj
Copy link
Contributor Author

huajsj commented Jun 19, 2019

@tmoreau89 could you help to review this patch?

@tmoreau89
Copy link
Contributor

There is currently a big PR (#3135) that will be merged in for VTA (that also affects how the bitstream is programmed). Metal tests are somewhat deprecated and need a rehaul. I will review this patch once the PR is merged in as to make sure that this fix wont' interfere with the changes.

@tmoreau89
Copy link
Contributor

Upon inspection this doesn't look like it will interfere with PR#3135. I'm gonna go ahead with the code review.

Copy link
Contributor

@tmoreau89 tmoreau89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this looks good, can you please also modify https://github.com/uwsampl/tvm-vta/blob/master/vta/python/vta/exec/rpc_server.py#L58-L59 to use vta_bitstream_program? This way we just need to edit vtaprogram.py if the pynq library API changes.

Also can you rename vtaprogram.py to program_bitstream?

@huajsj
Copy link
Contributor Author

huajsj commented Jun 21, 2019

@tmoreau89 rpc_server.py change done, vtaprogram.py already get changed int program_bitstream.py?
@liangfu vtaprogram.py get renamed into program_bitstream.py, please find the change in this new file for comments address.

@huajsj
Copy link
Contributor Author

huajsj commented Jun 25, 2019

@tmoreau89 , all review comments already get addressed, change get tested on pynq board and it work good, please kindly let me know if you have any other comments.

@tmoreau89
Copy link
Contributor

Thank you for addressing the comments @huajsj

@tmoreau89 tmoreau89 merged commit fb95a98 into apache:master Jun 25, 2019
wweic pushed a commit to wweic/tvm that referenced this pull request Jun 26, 2019
… issue. (apache#3400)

* [VTA] Add VTA PYNQ metal_test bitstream program logic and fix couple compile issue.

Issue:
VTAProgram not exist and cause compile error.
No logic to program the bitstream into FPGA.
metal test still use pynq 2.1 library which not support on latest
pynq 2.4.

Solution:
remove old VTAProgram.
when setting is pynq, program the bitstream during compile.
change DMA link library to libcma.

* Address review commends.
wweic pushed a commit to neo-ai/tvm that referenced this pull request Jun 27, 2019
… issue. (apache#3400)

* [VTA] Add VTA PYNQ metal_test bitstream program logic and fix couple compile issue.

Issue:
VTAProgram not exist and cause compile error.
No logic to program the bitstream into FPGA.
metal test still use pynq 2.1 library which not support on latest
pynq 2.4.

Solution:
remove old VTAProgram.
when setting is pynq, program the bitstream during compile.
change DMA link library to libcma.

* Address review commends.
tqchen pushed a commit to tqchen/tvm that referenced this pull request Mar 29, 2020
… issue. (apache#3400)

* [VTA] Add VTA PYNQ metal_test bitstream program logic and fix couple compile issue.

Issue:
VTAProgram not exist and cause compile error.
No logic to program the bitstream into FPGA.
metal test still use pynq 2.1 library which not support on latest
pynq 2.4.

Solution:
remove old VTAProgram.
when setting is pynq, program the bitstream during compile.
change DMA link library to libcma.

* Address review commends.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants