GoldSunMonkey 发表于 2013-3-11 20:29 
为什么要调用宏呢?为什么不调用文件呢?
我想用书上这个例子,学习怎样调用硬宏。在以后的程序中会用到。
猴哥,我现在调用成功了。但是写testbench用modelsim仿真时有个警告:
Loading std.standard
# Loading ieee.std_logic_1164(body)
# Loading ieee.std_logic_arith(body)
# Loading ieee.std_logic_unsigned(body)
# Loading ieee.numeric_std(body)
# Loading work.test_add_2bits_vhd(behavior)#1
# ** Warning: (vsim-3473) Component instance "u1 : add_2bit" is not bound.
# Time: 0 ns Iteration: 0 Region: /test_add_2bits_vhd/uut File: F:/XilinxISE91/work/example-8-2-2/add_2bits/test_add_2bits.vhd
quit -sim
或者用命令行直接在modelsim仿真,也是这个警告。没有输出结果。
猴哥,帮我看看吧
|