T
thomasc
Guest
Hi all,
I've seen a verilog file(.v) which contains only a function, not even
"module" keyword and parenthesized port list. And the function was called
from another module(another verolog file) in the same project. I tried the
same operation in my project and the files compiled without an error.
However, when I tried to simulate it with a testbench, NodelSim gave an
error message saying "Unresolved reference". (I copied the entire error
message at the bottom.)
I want to find out if I need to do something special in order to call a
function which is specified in another .v file, which consists of only the
function.
Please let me know how I can make this work.
Thank you!
thomasc
==========
# Loading work.test_exp_table
# ** Error: (vsim-3043)
D:/My_Projects/ModelSim/RS_CODEC_byte/benches/test_exp_table.v(14):
Unresolved reference to 'exp_table'.
# Region: /test_exp_table
# ** Error: (vsim-3043)
D:/My_Projects/ModelSim/RS_CODEC_byte/benches/test_exp_table.v(14):
Unresolved reference to 'exp_table' in exp_table.exp_table.
# Region: /test_exp_table
# ** Error: (vsim-3043)
D:/My_Projects/ModelSim/RS_CODEC_byte/benches/test_exp_table.v(14):
Unresolved reference to 'exp_table' in exp_table.$0.
# Region: /test_exp_table
# Error loading design
I've seen a verilog file(.v) which contains only a function, not even
"module" keyword and parenthesized port list. And the function was called
from another module(another verolog file) in the same project. I tried the
same operation in my project and the files compiled without an error.
However, when I tried to simulate it with a testbench, NodelSim gave an
error message saying "Unresolved reference". (I copied the entire error
message at the bottom.)
I want to find out if I need to do something special in order to call a
function which is specified in another .v file, which consists of only the
function.
Please let me know how I can make this work.
Thank you!
thomasc
==========
# Loading work.test_exp_table
# ** Error: (vsim-3043)
D:/My_Projects/ModelSim/RS_CODEC_byte/benches/test_exp_table.v(14):
Unresolved reference to 'exp_table'.
# Region: /test_exp_table
# ** Error: (vsim-3043)
D:/My_Projects/ModelSim/RS_CODEC_byte/benches/test_exp_table.v(14):
Unresolved reference to 'exp_table' in exp_table.exp_table.
# Region: /test_exp_table
# ** Error: (vsim-3043)
D:/My_Projects/ModelSim/RS_CODEC_byte/benches/test_exp_table.v(14):
Unresolved reference to 'exp_table' in exp_table.$0.
# Region: /test_exp_table
# Error loading design