Forum Discussion
How do I edit my own question?
I found an avalon_mm_pkg.sv.
I added avalon_mm_pkg.sv to EXAMPLE/simulation/ed_sim/models, where the other verilog code is located. (avalon_various.sv, eth_various.sv, default_test_params_pkg.sv and tb_top.sv)
I added in tb_top.sv line 22 `include "avalon_mm_pkg.sv".
I added in avalon_driver.sv line 20 `include "avalon_mm_pkg.sv".
See code snippet 1
Msim Transcript reports: see sode snippet 2.
Line 8: In line 38 of avalon_mm_pkg.sv, a packet is called but not found. [encrypted]. There is no vopt-7 error.
Line 10: As a result of course, the avalon_driver cannot import the avalon_mm_pkg parameters @ Line 67 import avalon_mm_pkg::*;
Please advice
In tb_top.sv
18 `include "eth_register_map_params_pkg.sv"
19 `include "avalon_driver.sv"
20 `include "avalon_st_eth_packet_monitor.sv"
21 `include "default_test_params_pkg.sv"
22 `include "avalon_mm_pkg.sv" //NEW added by pieter
In avalon_driver.sv
17`include "avalon_if_params_pkg.sv"
18 `include "avalon_bfm_wrapper.sv"
19 `include "eth_mac_frame.sv"
20 `include "avalon_mm_pkg.sv" //NEW added by pieter# vlog -reportprogress 300 -sv "+incdir+../models" ../models/tb_top.sv
# -- Compiling package eth_register_map_params_pkg
# -- Compiling package avalon_if_params_pkt
# -- Compiling module avalon_bfm_wrapper
# -- Importing package avalon_if_params_pkt
# ** Error: ** while parsing file included at ../models/tb_top.sv(19)
# ** while parsing file included at ../models/avalon_driver.sv(20)
# ** at ../models/avalon_mm_pkg.sv(38): (vlog-13006) Could not find the package (<protected>). Design read will continue, but expect a cascade of errors after this failure. Furthermore if you experience a vopt-7 error immediately before this error then please check the package names or the library search paths on the command line.
# ** Error: ** while parsing file included at ../models/tb_top.sv(19)
# ** at ../models/avalon_driver.sv(67): (vlog-13006) Could not find the package (avalon_mm_pkg). Design read will continue, but expect a cascade of errors after this failure. Furthermore if you experience a vopt-7 error immediately before this error then please check the package names or the library search paths on the command line.
# End time: 12:42:59 on Jun 26,2019, Elapsed time: 0:00:01
# Errors: 4, Warnings: 0
# ** Error: C:/intelFPGA_pro/18.0/modelsim_ase/win32aloem/vlog failed.
# Error in macro ./mentor.do line 25
# C:/intelFPGA_pro/18.0/modelsim_ase/win32aloem/vlog failed.
# while executing
# "vlog -sv {+incdir+../models} "../models/tb_top.sv" "
# ("eval" body line 1)
# invoked from within
# "eval $file"
# ("foreach" body line 2)
# invoked from within
# "foreach file $design_files {
# eval $file
# }"
# ("eval" body line 13)
# invoked from within
# "com"- Shubhall3 years ago
New Contributor
Hi,
I was facing the similar problem and here is the solution -
1. Add avalon_mm_pkg.sv and verbosity_pkg.sv in the model folder where tb_top.sv is located.
2. Compile the verbosity_pkg.sv using the command "vlog -reportprogress 300 -sv "+incdir+../../models" ../../models/verbosity_pkg.sv" .
3. Now compile avalon_mm_pkg.sv using "vlog -reportprogress 300 -sv "+incdir+../../models" ../../models/avalon_mm_pkg.sv" .
4. Compile the tb_top.sv file " vlog -reportprogress 300 -sv "+incdir+../../models" ../../models/tb_top.sv".
5. Now try running again using ld_debug.
Foe me it solved using these steps. I was using Questa (Quartus prime 22.2).
Thank you