usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

How can add some verilog dir file to rfnoc block make file

S
sp
Sat, Aug 12, 2023 9:13 AM

I want to use sine ton verilog file in my rfnoc block file, How Can add
sine tone file and ... to my rfnoc block
how can solve my problems? my Verilog file are in this
path uhd-4.1.0.5/fpga/usrp3/lib/rfnoc
Thanks in advance

RROR: [VRFC 10-2063] Module <sine_tone> not found while processing module
instance <sine_tone_i>
[/home/sp/rfnoc-test/rfnoc/fpga/rfnoc_block_gain/correlate.v:132]
ERROR: [VRFC 10-2063] Module <rng> not found while processing module
instance <rng_i>
[/home/sp/rfnoc-test/rfnoc/fpga/rfnoc_block_gain/correlate.v:164]

#-------------------------------------------------

Top-of-Makefile

#-------------------------------------------------

Define BASE_DIR to point to the "top" dir. Note:

UHD_FPGA_DIR must be passed into this Makefile.

ifndef UHD_FPGA_DIR
$(error "UHD_FPGA_DIR is not set! Must point to UHD FPGA repository!")
endif
BASE_DIR = $(UHD_FPGA_DIR)/usrp3/top

Include viv_sim_preample after defining BASE_DIR

include $(BASE_DIR)/../tools/make/viv_sim_preamble.mak

#-------------------------------------------------

Design Specific

#-------------------------------------------------

Include makefiles and sources for the DUT and its

dependencies.

include $(BASE_DIR)/../lib/rfnoc/core/Makefile.srcs
include $(BASE_DIR)/../lib/rfnoc/utils/Makefile.srcs
include Makefile.srcs

DESIGN_SRCS += $(abspath $(RFNOC_CORE_SRCS) $(RFNOC_UTIL_SRCS)
$(RFNOC_OOT_SRCS)  )

#-------------------------------------------------

Testbench Specific

#-------------------------------------------------
SIM_TOP = rfnoc_block_gain_tb
SIM_SRCS = $(abspath rfnoc_block_gain_tb.sv)
#-------------------------------------------------

Bottom-of-Makefile

#-------------------------------------------------

Include all simulator specific makefiles here

Each should define a unique target to simulate

e.g. xsim, vsim, etc and a common "clean" target

include $(BASE_DIR)/../tools/make/viv_simulator.mak

I want to use sine ton verilog file in my rfnoc block file, How Can add sine tone file and ... to my rfnoc block how can solve my problems? my Verilog file are in this path uhd-4.1.0.5/fpga/usrp3/lib/rfnoc Thanks in advance RROR: [VRFC 10-2063] Module <sine_tone> not found while processing module instance <sine_tone_i> [/home/sp/rfnoc-test/rfnoc/fpga/rfnoc_block_gain/correlate.v:132] ERROR: [VRFC 10-2063] Module <rng> not found while processing module instance <rng_i> [/home/sp/rfnoc-test/rfnoc/fpga/rfnoc_block_gain/correlate.v:164] #------------------------------------------------- # Top-of-Makefile #------------------------------------------------- # Define BASE_DIR to point to the "top" dir. Note: # UHD_FPGA_DIR must be passed into this Makefile. ifndef UHD_FPGA_DIR $(error "UHD_FPGA_DIR is not set! Must point to UHD FPGA repository!") endif BASE_DIR = $(UHD_FPGA_DIR)/usrp3/top # Include viv_sim_preample after defining BASE_DIR include $(BASE_DIR)/../tools/make/viv_sim_preamble.mak #------------------------------------------------- # Design Specific #------------------------------------------------- # Include makefiles and sources for the DUT and its # dependencies. include $(BASE_DIR)/../lib/rfnoc/core/Makefile.srcs include $(BASE_DIR)/../lib/rfnoc/utils/Makefile.srcs include Makefile.srcs DESIGN_SRCS += $(abspath $(RFNOC_CORE_SRCS) $(RFNOC_UTIL_SRCS) $(RFNOC_OOT_SRCS) ) #------------------------------------------------- # Testbench Specific #------------------------------------------------- SIM_TOP = rfnoc_block_gain_tb SIM_SRCS = $(abspath rfnoc_block_gain_tb.sv) #------------------------------------------------- # Bottom-of-Makefile #------------------------------------------------- # Include all simulator specific makefiles here # Each should define a unique target to simulate # e.g. xsim, vsim, etc and a common "clean" target include $(BASE_DIR)/../tools/make/viv_simulator.mak
E
edenmclaughlin123@gmail.com
Sat, Aug 12, 2023 9:59 AM

Greetings,

I find the easiest way to include components to be by mimicing the rfnoc-example found under the uhd/host/examples/rfnoc-example.

I would recommend you to wrap your ip into a module, instantiate that module wherever you please and create your makefile.inc (use the file as follows as a template) like in here, and add references to the building tool file (such as cmakelist.txt) whatever you are building the project with.

Regards,

Eden.

Greetings, I find the easiest way to include components to be by mimicing the rfnoc-example found under the uhd/host/examples/rfnoc-example. I would recommend you to wrap your ip into a [module](https://youtu.be/uhEsG4i9dvc "https://youtu.be/uhEsG4i9dvc"), instantiate that module wherever you please and create your makefile.inc (use the file as follows as a template) like in [here](https://github.com/EttusResearch/uhd/blob/master/host/examples/rfnoc-example/fpga/ip/cmplx_mul/cmplx_mul.xci "https://github.com/EttusResearch/uhd/blob/master/host/examples/rfnoc-example/fpga/ip/cmplx_mul/cmplx_mul.xci"), and add references to the building tool file (such as cmakelist.txt) whatever you are building the project with. Regards, Eden.
S
sp
Tue, Aug 15, 2023 5:19 AM

But sine_tone module is not ip core there is some build-in define module
that defines in lib folder USRP in this path
uhd-4.1.0.5/fpga/usrp3/lib/rfnoc
sine_tone is used in rfnoc_block_siggen  block but for my custom block I
faced with

RROR: [VRFC 10-2063] Module <sine_tone> not found while processing module
instance <sine_tone_i> [/home/sp/rfnoc-test/rfnoc
/fpga/rfnoc_block_gain/correlate.v:132]
ERROR: [VRFC 10-2063] Module <rng> not found while processing module
instance <rng_i> [/home/sp/rfnoc-test/rfnoc
/fpga/rfnoc_block_gain/correlate.v:164]

How am I adding non-ip core to my custom module.....  I added a make
file and make srcs files. For the building, I had not problem But
with the simulation I have errors .....
thanks in advance

On Sat, Aug 12, 2023 at 2:29 PM edenmclaughlin123@gmail.com wrote:

Greetings,

I find the easiest way to include components to be by mimicing the
rfnoc-example found under the uhd/host/examples/rfnoc-example.

I would recommend you to wrap your ip into a module
https://youtu.be/uhEsG4i9dvc, instantiate that module wherever you
please and create your makefile.inc (use the file as follows as a template)
like in here
https://github.com/EttusResearch/uhd/blob/master/host/examples/rfnoc-example/fpga/ip/cmplx_mul/cmplx_mul.xci,
and add references to the building tool file (such as cmakelist.txt)
whatever you are building the project with.

Regards,

Eden.


USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com

But sine_tone module is not ip core there is some build-in define module that defines in lib folder USRP in this path uhd-4.1.0.5/fpga/usrp3/lib/rfnoc sine_tone is used in rfnoc_block_siggen block but for my custom block I faced with RROR: [VRFC 10-2063] Module <sine_tone> not found while processing module instance <sine_tone_i> [/home/sp/rfnoc-test/rfnoc /fpga/rfnoc_block_gain/correlate.v:132] ERROR: [VRFC 10-2063] Module <rng> not found while processing module instance <rng_i> [/home/sp/rfnoc-test/rfnoc /fpga/rfnoc_block_gain/correlate.v:164] How am I adding non-ip core to my custom module..... I added a make file and make srcs files. For the building, I had not problem But with the simulation I have errors ..... thanks in advance On Sat, Aug 12, 2023 at 2:29 PM <edenmclaughlin123@gmail.com> wrote: > Greetings, > > I find the easiest way to include components to be by mimicing the > rfnoc-example found under the uhd/host/examples/rfnoc-example. > > I would recommend you to wrap your ip into a module > <https://youtu.be/uhEsG4i9dvc>, instantiate that module wherever you > please and create your makefile.inc (use the file as follows as a template) > like in here > <https://github.com/EttusResearch/uhd/blob/master/host/examples/rfnoc-example/fpga/ip/cmplx_mul/cmplx_mul.xci>, > and add references to the building tool file (such as cmakelist.txt) > whatever you are building the project with. > > Regards, > > Eden. > _______________________________________________ > USRP-users mailing list -- usrp-users@lists.ettus.com > To unsubscribe send an email to usrp-users-leave@lists.ettus.com >
E
edenmclaughlin123@gmail.com
Tue, Aug 15, 2023 10:25 AM

Hi,

can you please provide elaborate explanation about and information on trivial steps to reproduce the problem?

Eden.

Hi, can you please provide elaborate explanation about and information on trivial steps to reproduce the problem? Eden.