-
Notifications
You must be signed in to change notification settings - Fork 669
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
rfnoc_modtool create and add requires some work after #813
Comments
@zacaric Thanks for this super helpful report. FYI, we generate the OOT sources from |
Another modification I had to make afterwards was to add a comma on line 182 of I will add this to the description as well to keep these needed modifications in one place |
It seems like I do have those changes. I have my docker image setup to grab the latest code on the I also found some errors with double quotes (
I also added that |
|
@zacaric FYI we have a patchset incoming with fixes to all the issues. It's going through an internal review process right now. |
Issue Description
I am using
rfnoc_modtool
to create an oot module calledcore
and a block calledsquare
(squares the IQ data).When doing this, there are a few issues that causes things to not work right away and requires changes right out of the box (See Actual Behavior to see what changes are required to get working). Some of the items in the list I can understand needing to do, but other items I feel should have been handled by
rfnoc_modtool
when generating the files.Setup Details
UHD 4.7.0.0-149-g635ad362
,Ubuntu 22.04
,Vivado 2021.2 AR76780
Expected Behavior
Expected for files generated from
rfnoc_modtool
to work out of the box with little modification. Also expected adding an icore file would also work out of the box. Little modification is understandable, but some documentation on that would be helpful.Actual Behavior
The following files require modification:
rfnoc-core/CMakeLists.txt
needsfind_package (Python3 COMPONENTS Interpreter Development)
added (I added it after line 43 and it worked)rfnoc-core/lib/square_block_control.cpp
change"Gain"
to"Square"
on line 30rfnoc-core/python/square_block_control_python.hpp
needs to have line 12 changed fromusing namespace rfnoc::gain;
tousing namespace rfnoc::core;
rfnoc-core/fpga/core/CMakeLists.txt
needsadd_subdirectory(rfnoc_block_square)
addedrfnoc-core/fpga/core/rfnoc_block_square/CMakeLists.txt
and add the following:rfnoc-core/fpga/core/rfnoc_block_square/Makefile.srcs
needs the file extenstions to be change from*.v
to*.sv
rfnoc-core/fpga/core/rfnoc_block_square/rfnoc_block_square.sv
needs a comma at the end of line 182rfnoc-core/fpga/core/rfnoc_block_square/rfnoc_block_square.sv
needs quotes aroundHDL_IP
on line 26rfnoc-core/fpga/core/rfnoc_block_square/noc_shell_square.sv
needs a comma at the end of line 116rfnoc-core/fpga/core/rfnoc_block_square/noc_shell_square.sv
needs quotes aroundHDL_IP
on line 36rfnoc-core/icores/CMakeLists.txt
requiresRFNOC_REGISTER_BLOCK
to be changed toRFNOC_REGISTER_IMAGE_CORE
Even after doing this, I am still getting the following error:UPDATE: Found out the following error had to do with an incorrect path in mysquare.yml
file and not therfnoc_modtool
Steps to reproduce the problem
Additional Information
I am running all of this in a docker image (using Ubuntu 22.04 as the base). I was able to get the rfnoc_gain example working in this docker image.
The text was updated successfully, but these errors were encountered: