用以上命令行运行张强的UVM实战的例子代码
出现了下面的错误:
uvm_dpi.o: In function `m_uvm_report_dpi':
uvm_dpi.cc.text+0x43): multiple definition of `m_uvm_report_dpi'
uvm_dpi.o:uvm_dpi.cc.text+0x43): first defined here
uvm_dpi.o: In function `int_str_max':
uvm_dpi.cc.text+0x1cd): multiple definition of `int_str_max'
uvm_dpi.o:uvm_dpi.cc:(.text+0x1cd): first defined here
uvm_dpi.o: In function `uvm_re_match':
uvm_dpi.cc:(.text+0x1f8): multiple definition of `uvm_re_match'
uvm_dpi.o:uvm_dpi.cc:(.text+0x1f8): first defined here
uvm_dpi.o: In function `uvm_glob_to_re':
uvm_dpi.cc:(.text+0x460): multiple definition of `uvm_glob_to_re'
uvm_dpi.o:uvm_dpi.cc:(.text+0x460): first defined here
uvm_dpi.o: In function `uvm_dump_re_cache':
uvm_dpi.cc:(.text+0x6fc): multiple definition of `uvm_dump_re_cache'
uvm_dpi.o:uvm_dpi.cc:(.text+0x6fc): first defined here
uvm_dpi.o: In function `uvm_hdl_check_path':
uvm_dpi.cc:(.text+0x72f): multiple definition of `uvm_hdl_check_path'
uvm_dpi.o:uvm_dpi.cc:(.text+0x72f): first defined here
uvm_dpi.o: In function `uvm_hdl_btoi':
uvm_dpi.cc:(.text+0x755): multiple definition of `uvm_hdl_btoi'
uvm_dpi.o:uvm_dpi.cc:(.text+0x755): first defined here
uvm_dpi.o: In function `uvm_hdl_dtob':
uvm_dpi.cc:(.text+0x890): multiple definition of `uvm_hdl_dtob'
uvm_dpi.o:uvm_dpi.cc:(.text+0x890): first defined here
uvm_dpi.o: In function `uvm_hdl_get_mhdl':
uvm_dpi.cc:(.text+0x8f9): multiple definition of `uvm_hdl_get_mhdl'
uvm_dpi.o:uvm_dpi.cc:(.text+0x8f9): first defined here
uvm_dpi.o: In function `uvm_hdl_read':
uvm_dpi.cc:(.text+0xbf1): multiple definition of `uvm_hdl_read'
uvm_dpi.o:uvm_dpi.cc:(.text+0xbf1): first defined here
uvm_dpi.o: In function `uvm_hdl_set_mhdl':
uvm_dpi.cc:(.text+0xe36): multiple definition of `uvm_hdl_set_mhdl'
uvm_dpi.o:uvm_dpi.cc:(.text+0xe36): first defined here
uvm_dpi.o: In function `uvm_hdl_deposit':
uvm_dpi.cc:(.text+0xefb): multiple definition of `uvm_hdl_deposit'
uvm_dpi.o:uvm_dpi.cc:(.text+0xefb): first defined here
uvm_dpi.o: In function `uvm_hdl_force':
uvm_dpi.cc:(.text+0xf80): multiple definition of `uvm_hdl_force'
uvm_dpi.o:uvm_dpi.cc:(.text+0xf80): first defined here
uvm_dpi.o: In function `uvm_hdl_release_and_read':
uvm_dpi.cc:(.text+0x1005): multiple definition of `uvm_hdl_release_and_read'
uvm_dpi.o:uvm_dpi.cc:(.text+0x1005): first defined here
uvm_dpi.o: In function `uvm_hdl_release':
uvm_dpi.cc:(.text+0x1082): multiple definition of `uvm_hdl_release'
uvm_dpi.o:uvm_dpi.cc:(.text+0x1082): first defined here
uvm_dpi.o: In function `push_data':
uvm_dpi.cc:(.text+0x110a): multiple definition of `push_data'
uvm_dpi.o:uvm_dpi.cc:(.text+0x110a): first defined here
uvm_dpi.o:(.bss+0x10): multiple definition of `argc_total'
uvm_dpi.o:(.bss+0x10): first defined here
uvm_dpi.o:(.bss+0x0): multiple definition of `argv_ptr'
uvm_dpi.o:(.bss+0x0): first defined here
uvm_dpi.o: In function `walk_level':
uvm_dpi.cc:(.text+0x112e): multiple definition of `walk_level'
uvm_dpi.o:uvm_dpi.cc:(.text+0x112e): first defined here
uvm_dpi.o: In function `uvm_dpi_get_next_arg_c':
uvm_dpi.cc:(.text+0x11f7): multiple definition of `uvm_dpi_get_next_arg_c'
uvm_dpi.o:uvm_dpi.cc:(.text+0x11f7): first defined here
uvm_dpi.o:(.bss+0x8): multiple definition of `argv_stack'
uvm_dpi.o:(.bss+0x8): first defined here
uvm_dpi.o: In function `uvm_dpi_get_tool_name_c':
uvm_dpi.cc:(.text+0x12bd): multiple definition of `uvm_dpi_get_tool_name_c'
uvm_dpi.o:uvm_dpi.cc:(.text+0x12bd): first defined here
uvm_dpi.o: In function `uvm_dpi_get_tool_version_c':
uvm_dpi.cc:(.text+0x12d3): multiple definition of `uvm_dpi_get_tool_version_c'
uvm_dpi.o:uvm_dpi.cc:(.text+0x12d3): first defined here
uvm_dpi.o: In function `uvm_dpi_regcomp':
uvm_dpi.cc:(.text+0x12e9): multiple definition of `uvm_dpi_regcomp'
uvm_dpi.o:uvm_dpi.cc:(.text+0x12e9): first defined here
uvm_dpi.o: In function `uvm_dpi_regexec':
uvm_dpi.cc:(.text+0x13b3): multiple definition of `uvm_dpi_regexec'
uvm_dpi.o:uvm_dpi.cc:(.text+0x13b3): first defined here
uvm_dpi.o: In function `uvm_dpi_regfree':
uvm_dpi.cc:(.text+0x13dc): multiple definition of `uvm_dpi_regfree'
uvm_dpi.o:uvm_dpi.cc:(.text+0x13dc): first defined here
collect2: error: ld returned 1 exit status
Makefile:104: recipe for target 'product_timestamp' failed
make: *** [product_timestamp] Error 1
Make exited with status 2
CPU time: 2.905 seconds to compile + .015 seconds to elab + .205 seconds to link
希望大佬帮忙看一下,感激不尽!
vcs的版本是vcs-mx_vl-2016.06
uvm的版本是uvm-1.2