|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
库语句(Library) x7 i# J* }! F8 E% i0 E; ]
! k! g" |6 B* X
Library子句在本地环境下,为设计库定义一个逻辑名。
2 l8 ?9 c- c+ |5 x2 }A library clause defines logical names for design libraries in the host environment.
/ M$ b4 ]3 N( x: l+ f/ Z% }% @+ o( g) {7 W
语法(Syntax)3 \$ G5 F, [* p
# R8 d( y: [0 G& `/ I
library library_name, ... ; ; Y r& a0 o/ \8 h9 w
1
: o4 y3 x7 i: M说明(Description)
1 J: }8 @& c5 P7 i/ V1 O
0 j' H2 _% `* e6 cLibrary语句为设计库定义一个逻辑名,可以被设计单元使用。库是一个实现相关(implementation-dependent)的存储,为了便于预先分析设计单元。
/ b V: z2 P0 H4 O, s* r( oThe 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.
; r/ b# k( t* \, L; J, _9 VVHDL库常被作为主机文件系统的一个路径来实现。库名对应文件路径。
9 e6 Y# l/ R$ ~- i K5 S# D# OA 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. % j1 G0 n4 J) l9 | P7 F
有两个预定的库,被隐式使用:std和work。Std库包含包Standard和Textio。Work库是工作库,存储所有用户创建的分析的设计单元。所有用户指定的包都存储在工作库Work中。
1 p. w! S9 _1 }4 |There 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.
% V5 M! J* i5 L3 N+ ?# `' _) c |
# {/ z+ E7 @) D; j+ K$ B9 V& k' @ |
|