|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
库语句(Library)
4 ^4 c9 } A: I$ ~ a
0 b. N$ Q4 R8 L7 ]: BLibrary子句在本地环境下,为设计库定义一个逻辑名。 2 k0 i; X" D) p/ w7 s8 |
A library clause defines logical names for design libraries in the host environment.
0 l( n. c, A+ R. ]4 {3 _& m9 I+ J- f
语法(Syntax)* D) O! q5 G) L; W0 _: T
3 n7 k4 d7 [2 v: L! S$ o5 |+ |" j
library library_name, ... ; 9 J/ C: g' f* K* S+ g7 |
1/ o5 s2 o8 B+ \6 d3 ], t
说明(Description)3 D' J E. i( l& a" z" s% M; H
7 N( { ]! P' n# VLibrary语句为设计库定义一个逻辑名,可以被设计单元使用。库是一个实现相关(implementation-dependent)的存储,为了便于预先分析设计单元。 * B$ z- C' W( R1 d. Y0 G3 y/ ^
The library clause defines the logical names of design libraries, which are used by the design units. A library is an implementation-dependent storage facility for previously analyzed design units.
# J/ A+ b* |7 X j+ NVHDL库常被作为主机文件系统的一个路径来实现。库名对应文件路径。
- K9 t" B, @; RA VHDL library is usually implemented as a directory in the host file system. The library name is mapped to the pathname of that directory by the VHDL tool. " C9 q! I$ ^6 V3 Z) q
有两个预定的库,被隐式使用:std和work。Std库包含包Standard和Textio。Work库是工作库,存储所有用户创建的分析的设计单元。所有用户指定的包都存储在工作库Work中。
' N+ I. m% G) m$ U: UThere are two predefined libraries, which are used implicitly in every design: Std and Work. The Std library contains the packages Standard and Textio. The Work library is a working library, where all user-created and analyzed design units are stored. Also user-specified packages are stored in the working library Work.2 Y8 S( n0 u' h
|
0 U9 O% m* t5 S |
|