You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am a novice FPGA user. I am trying to execute 'make' in the verilog-pcie-master/example/AU50/fpga/tb/fpga_core directory. Here is the content of the makefile:
Copyright (c) 2020 Alex Forencich
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
But I encountered the following error:
rm -f results.xml
make -f Makefile results.xml
make[1]: Entering directory '/home/jalen/verilog-pcie-master/example/AU50/fpga/tb/fpga_core'
make[1]: *** No rule to make target '../../rtl/common/example_core_pcie_us.v', needed by 'sim_build/sim.vvp'. Stop.
make[1]: Leaving directory '/home/jalen/verilog-pcie-master/example/AU50/fpga/tb/fpga_core'
make: *** [/home/jalen/.local/lib/python3.10/site-packages/cocotb/share/makefiles/Makefile.inc:40: sim] Error 2
It seems that the .v files under the corresponding path are not found when copying VERILOG_SOURCES. However, I made sure that I downloaded the complete compressed package and extracted it. Could you please advise on how to solve this problem or identify which step I might have done wrong? Looking forward to your answer!"
The text was updated successfully, but these errors were encountered:
Hello, I am a novice FPGA user. I am trying to execute 'make' in the verilog-pcie-master/example/AU50/fpga/tb/fpga_core directory. Here is the content of the makefile:
Copyright (c) 2020 Alex Forencich
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
TOPLEVEL_LANG = verilog
SIM ?= icarus
WAVES ?= 0
COCOTB_HDL_TIMEUNIT = 1ns
COCOTB_HDL_TIMEPRECISION = 1ps
DUT = fpga_core
TOPLEVEL = $(DUT)
MODULE = test_$(DUT)
VERILOG_SOURCES += ../../rtl/$(DUT).v
VERILOG_SOURCES += ../../rtl/common/example_core_pcie_us.v
VERILOG_SOURCES += ../../rtl/common/example_core_pcie.v
VERILOG_SOURCES += ../../rtl/common/example_core.v
VERILOG_SOURCES += ../../rtl/common/axi_ram.v
VERILOG_SOURCES += ../../lib/pcie/rtl/pcie_us_if.v
VERILOG_SOURCES += ../../lib/pcie/rtl/pcie_us_if_rc.v
VERILOG_SOURCES += ../../lib/pcie/rtl/pcie_us_if_rq.v
VERILOG_SOURCES += ../../lib/pcie/rtl/pcie_us_if_cq.v
VERILOG_SOURCES += ../../lib/pcie/rtl/pcie_us_if_cc.v
VERILOG_SOURCES += ../../lib/pcie/rtl/pcie_us_cfg.v
VERILOG_SOURCES += ../../lib/pcie/rtl/pcie_axil_master.v
VERILOG_SOURCES += ../../lib/pcie/rtl/pcie_axi_master.v
VERILOG_SOURCES += ../../lib/pcie/rtl/pcie_axi_master_rd.v
VERILOG_SOURCES += ../../lib/pcie/rtl/pcie_axi_master_wr.v
VERILOG_SOURCES += ../../lib/pcie/rtl/pcie_tlp_demux_bar.v
VERILOG_SOURCES += ../../lib/pcie/rtl/pcie_tlp_demux.v
VERILOG_SOURCES += ../../lib/pcie/rtl/pcie_tlp_mux.v
VERILOG_SOURCES += ../../lib/pcie/rtl/pcie_tlp_fifo.v
VERILOG_SOURCES += ../../lib/pcie/rtl/pcie_tlp_fifo_raw.v
VERILOG_SOURCES += ../../lib/pcie/rtl/pcie_msix.v
VERILOG_SOURCES += ../../lib/pcie/rtl/dma_if_pcie.v
VERILOG_SOURCES += ../../lib/pcie/rtl/dma_if_pcie_rd.v
VERILOG_SOURCES += ../../lib/pcie/rtl/dma_if_pcie_wr.v
VERILOG_SOURCES += ../../lib/pcie/rtl/dma_psdpram.v
VERILOG_SOURCES += ../../lib/pcie/rtl/priority_encoder.v
VERILOG_SOURCES += ../../lib/pcie/rtl/pulse_merge.v
module parameters
export PARAM_AXIS_PCIE_DATA_WIDTH := 512$(shell expr $ (PARAM_AXIS_PCIE_DATA_WIDTH) / 32 )$(if $ (filter-out 512,$(PARAM_AXIS_PCIE_DATA_WIDTH)),62,137)$(if $ (filter-out 512,$(PARAM_AXIS_PCIE_DATA_WIDTH)),75,161)$(if $ (filter-out 512,$(PARAM_AXIS_PCIE_DATA_WIDTH)),88,183)$(if $ (filter-out 512,$(PARAM_AXIS_PCIE_DATA_WIDTH)),33,81)$(if $ (filter-out 256 512,$(PARAM_AXIS_PCIE_DATA_WIDTH)),0,1)$(if $ (filter-out 512,$(PARAM_AXIS_PCIE_DATA_WIDTH)),0,1)$(if $ (filter-out 512,$(PARAM_AXIS_PCIE_DATA_WIDTH)),0,1)$(if $ (filter-out 512,$(PARAM_AXIS_PCIE_DATA_WIDTH)),0,1)
export PARAM_AXIS_PCIE_KEEP_WIDTH :=
export PARAM_AXIS_PCIE_RQ_USER_WIDTH :=
export PARAM_AXIS_PCIE_RC_USER_WIDTH :=
export PARAM_AXIS_PCIE_CQ_USER_WIDTH :=
export PARAM_AXIS_PCIE_CC_USER_WIDTH :=
export PARAM_RC_STRADDLE :=
export PARAM_RQ_STRADDLE :=
export PARAM_CQ_STRADDLE :=
export PARAM_CC_STRADDLE :=
export PARAM_RQ_SEQ_NUM_WIDTH := 6
export PARAM_RQ_SEQ_NUM_ENABLE := 1
export PARAM_PCIE_TAG_COUNT := 64
export PARAM_BAR0_APERTURE := 24
export PARAM_BAR2_APERTURE := 24
export PARAM_BAR4_APERTURE := 16
ifeq ($(SIM), icarus)
PLUSARGS += -fst
else ifeq ($(SIM), verilator)
COMPILE_ARGS += -Wno-SELRANGE -Wno-WIDTH
endif
include $(shell cocotb-config --makefiles)/Makefile.sim
iverilog_dump.v:$(TOPLEVEL));' >> $ @
echo 'module iverilog_dump();' > $@
echo 'initial begin' >> $@
echo ' $$dumpfile("$(TOPLEVEL).fst");' >> $@
echo ' $$dumpvars(0,
echo 'end' >> $@
echo 'endmodule' >> $@
clean::
@rm -rf iverilog_dump.v
@rm -rf dump.fst $(TOPLEVEL).fst
But I encountered the following error:
rm -f results.xml
make -f Makefile results.xml
make[1]: Entering directory '/home/jalen/verilog-pcie-master/example/AU50/fpga/tb/fpga_core'
make[1]: *** No rule to make target '../../rtl/common/example_core_pcie_us.v', needed by 'sim_build/sim.vvp'. Stop.
make[1]: Leaving directory '/home/jalen/verilog-pcie-master/example/AU50/fpga/tb/fpga_core'
make: *** [/home/jalen/.local/lib/python3.10/site-packages/cocotb/share/makefiles/Makefile.inc:40: sim] Error 2
It seems that the .v files under the corresponding path are not found when copying VERILOG_SOURCES. However, I made sure that I downloaded the complete compressed package and extracted it. Could you please advise on how to solve this problem or identify which step I might have done wrong? Looking forward to your answer!"
The text was updated successfully, but these errors were encountered: