一个关于库声明的比较基础的vhdl问题
代码的库声明部分:library bsphylib;
use bsphylib.BsPhy;
use bsphylib.DmaSender;
use bsphylib.IrqMux;
use bsphylib.RxIqDemod;
use bsphylib.TxFormatter;
use bsphylib.RxFormatter;
use bsphylib.RxFormatterLowIF;
use work.IntLoopBack;
use work.EndianSwap;
use work.RfApiStub;
use work.TxAntStub;
use work.BsPhyTl_pkg.NUM_ANTS_TX;
use work.BsPhyTl_pkg.NUM_ANTS_RX;
use work.BsPhyTl_pkg.MAX_DATA_RATE;
use work.BsPhyTl_pkg.CONCURRENT_UL_USERS;
use work.BsPhyTl_pkg.PROC_ENDIAN;
use work.discardAE;
use work.genTxSync;
use work.shiftDownSig;
编译时错误信息为:
[Vhdl:Parse:61] Error - at /home/picoSystems/PC8520/1.3.1/TopLevel/BsPhyTl/src/BsPhyTl.vhd:18 Library name expected.
library bsphylib;
^
[Vhdl:Parse:61] Error - at /home/picoSystems/PC8520/1.3.1/TopLevel/BsPhyTl/src/BsPhyTl.vhd:19 Library name expected.
use bsphylib.BsPhy;
^
[Vhdl:Parse:61] Error - at /home/picoSystems/PC8520/1.3.1/TopLevel/BsPhyTl/src/BsPhyTl.vhd:20 Library name expected.
use bsphylib.DmaSender;
^
[Vhdl:Parse:61] Error - at /home/picoSystems/PC8520/1.3.1/TopLevel/BsPhyTl/src/BsPhyTl.vhd:21 Library name expected.
use bsphylib.IrqMux;
^
[Vhdl:Parse:61] Error - at /home/picoSystems/PC8520/1.3.1/TopLevel/BsPhyTl/src/BsPhyTl.vhd:22 Library name expected.
use bsphylib.RxIqDemod;
^
[Vhdl:Parse:61] Error - at /home/picoSystems/PC8520/1.3.1/TopLevel/BsPhyTl/src/BsPhyTl.vhd:23 Library name expected.
use bsphylib.TxFormatter;
^
[Vhdl:Parse:61] Error - at /home/picoSystems/PC8520/1.3.1/TopLevel/BsPhyTl/src/BsPhyTl.vhd:24 Library name expected.
use bsphylib.RxFormatter;
[Vhdl:Parse:61] Error - at /home/picoSystems/PC8520/1.3.1/TopLevel/BsPhyTl/src/BsPhyTl.vhd:25 Library name expected.
use bsphylib.RxFormatterLowIF;
[Vhdl:Parse:61] Error - at /home/picoSystems/PC8520/1.3.1/TopLevel/BsPhyTl/src/BsPhyTl.vhd:167 Entity name expected.
bsPhyInst: entity BsPhy
[Vhdl:Parse:61] Error - at /home/picoSystems/PC8520/1.3.1/TopLevel/BsPhyTl/src/BsPhyTl.vhd:298 Entity name expected.
send: entity DmaSender
[Vhdl:Parse:61] Error - at /home/picoSystems/PC8520/1.3.1/TopLevel/BsPhyTl/src/BsPhyTl.vhd:314 Entity name expected.
irq: entity IrqMux
[Vhdl:Parse:61] Error - at /home/picoSystems/PC8520/1.3.1/TopLevel/BsPhyTl/src/BsPhyTl.vhd:517 Entity name expected.
txFormatterI: entity TxFormatter
^
[Vhdl:Parse:61] Error - at /home/picoSystems/PC8520/1.3.1/TopLevel/BsPhyTl/src/BsPhyTl.vhd:622 Entity name expected.
rxFormatterI: entity RxFormatter
^
[Vhdl:Parse:61] Error - at /home/picoSystems/PC8520/1.3.1/TopLevel/BsPhyTl/src/BsPhyTl.vhd:679 Entity name expected.
rxFormatterI: entity RxFormatter
^
[Vhdl:Parse:61] Error - at /home/picoSystems/PC8520/1.3.1/TopLevel/BsPhyTl/src/BsPhyTl.vhd:733 Entity name expected.
txFormatterI: entity TxFormatter
^
[Vhdl:Parse:61] Error - at /home/picoSystems/PC8520/1.3.1/TopLevel/BsPhyTl/src/BsPhyTl.vhd:836 Entity name expected.
rxFormatterI: entity RxFormatterLowIF
^
[Vhdl:Parse:61] Error - at /home/picoSystems/PC8520/1.3.1/TopLevel/BsPhyTl/src/BsPhyTl.vhd:893 Entity name expected.
rxFormatterI: entity RxFormatterLowIF
^
[Vhdl:Parse:61] Error - at /home/picoSystems/PC8520/1.3.1/TopLevel/BsPhyTl/src/BsPhyTl.vhd:941 Entity name expected.
RxIqInPutHandling: entity RxIqDemod
[Vhdl:Usage:15] Error - Total of 18 parse errors.
Due to VHDL errors, no changes to working library made.
make[2]: *** [testbench.lib]
错误 1
make[1]: *** [design]
错误 2
make: *** [/home/picoSystems/PC8520/1.3.1/TopLevel/BsPhyTl/bld/TestBench_design.des
ms是找不到bsphylib这个库,
请问在vhdl源码文件中怎么声明自定义库的路径?怎样让系统找到那个库。谢谢!!! 帮顶,知道的帮忙回答下:handshake 谢谢
页:
[1]