Hadir Khan
02/19/2022, 12:54 AMopenram_defines.v
. This file is included inside the user_project_wrapper. While running make verify-io_ports
(just to test if everything is running fine) the simulation errors with “Include file openram_defines.v not found”. Note: this did not happen before the whole MCW simulation changes. Any ideas for the solution? I know iverilog is not able to find it but I am not sure how to make it find it.Marwan Abbas
02/20/2022, 10:04 AMmgmt_core_wrapper/verilog/includes/includes.rtl.caravel_user_project
add -v $(USER_PROJECT_VERILOG)/<openram_defines.v path>
Hadir Khan
02/20/2022, 3:34 PMMarwan Abbas
02/20/2022, 3:44 PMHadir Khan
02/20/2022, 4:04 PMexport CARAVEL_ROOT=/home/mkhan33/openram_testchip/caravel && make -f /home/mkhan33/openram_testchip/caravel/Makefile check-env
make[1]: Entering directory '/home/mkhan33/openram_testchip'
make[1]: Nothing to be done for 'check-env'.
make[1]: Leaving directory '/home/mkhan33/openram_testchip'
docker run -v /home/mkhan33/openram_testchip:/home/mkhan33/openram_testchip -v /home/mkhan33/shuttle-pdks/new-pdks:/home/mkhan33/shuttle-pdks/new-pdks \
-v /home/mkhan33/openram_testchip/caravel:/home/mkhan33/openram_testchip/caravel \
-e TARGET_PATH=/home/mkhan33/openram_testchip -e PDK_ROOT=/home/mkhan33/shuttle-pdks/new-pdks \
-e CARAVEL_ROOT=/home/mkhan33/openram_testchip/caravel \
-e TOOLS=/opt/riscv32i \
-e DESIGNS=/home/mkhan33/openram_testchip \
-e CORE_VERILOG_PATH=/home/mkhan33/openram_testchip/mgmt_core_wrapper/verilog \
-e GCC_PREFIX=riscv32-unknown-elf \
-e MCW_ROOT=/home/mkhan33/openram_testchip/mgmt_core_wrapper \
-u $(id -u $USER):$(id -g $USER) efabless/dv_setup:latest \
sh -c "cd /home/mkhan33/openram_testchip/verilog/dv/io_ports && export SIM=RTL && make"
iverilog -Ttyp -DFUNCTIONAL -DSIM -DUSE_POWER_PINS -DUNIT_DELAY=#1 \
-f/home/mkhan33/openram_testchip/mgmt_core_wrapper/verilog/includes/includes.rtl.caravel_user_project -o io_ports.vvp io_ports_tb.v
/home/mkhan33/openram_testchip/verilog/rtl/user_project_wrapper.v:18: Include file openram_defines.v not found
No top level modules, and no -s option.
make: *** [/home/mkhan33/openram_testchip/mgmt_core_wrapper/verilog/dv/make/sim.makefile:66: io_ports.vvp] Error 1
make: *** [Makefile:62: verify-io_ports] Error 2
Marwan Abbas
02/20/2022, 4:08 PMHadir Khan
02/20/2022, 4:09 PMMarwan Abbas
02/20/2022, 4:09 PMHadir Khan
02/20/2022, 4:11 PM$(USER_PROJECT_VERILOG)/verilog/rtl
need to be included in the mgmt_core_wrapper includes file?Marwan Abbas
02/20/2022, 4:12 PMHadir Khan
02/20/2022, 4:13 PMMarwan Abbas
02/20/2022, 4:13 PMHadir Khan
02/20/2022, 4:47 PMuprj_netlists.v
for including files needed to do simulation. But now everything moved to mgmt_core_wrapperMarwan Abbas
02/20/2022, 5:59 PMHadir Khan
02/27/2022, 11:40 PMopenram_defines.v
in the user_project_wrapper for the hardening flow, else Yosys errors out not finding the macro defined inside openram_defines.v
. But including that defines file causes simulation to not work.Marwan Abbas
02/28/2022, 11:15 AMHadir Khan
03/01/2022, 4:02 PM