端口映射(port map)

端口映射(port map)

端口映射用来定义实例间的内部连接。
A port map is used to define the interconnection between instances.

语法(Syntax)

port map ( [ 端口名 => ] 设定值, ... )
port map ( [ port_name => ] expression, ... )

说明(Description)

端口映射将结构体中的信号映射到结构体中的实例端口。端口映射在块或者配置中也会出现。
A port map maps signals in an architecture to ports on an instance within that architecture. Port maps can also appear in a block or in a configuration.

连接是位置性关联或者指定的关联。
The connections can be listed via positional association or via named association.

在实例中,端口名是指元件端口或者例化的实体端口,设定值为包含了改实例的结构体中可见的信号。在配置中,端口名为实体的端口,设定值为元件的端口。
Within an instance, the port names are ports on the component or entity being instanced, the expressions are signals visible in the architecture containing the instance. Within a configuration, the port names are ports on the entity, the expressions are ports on the component.

使用指定的关联可以单独对端口组中的元素进行连接。
The elements of an array port can be connected individually when using named association.

使用关键字open可以使端口保留未连接状态。
Ports may be left unconnected using the keyword open.

例程(Example)

architecture Structure of Top is
  component CompA
    generic (...);
    port (Clk, Rst: in std_logic;
          D: in std_logic_vector(3 downto 0);
          Rd : out std_logic;
          Q: out std_logic_vector(3 downto 0));
  end component;
begin
  u1: CompA generic map(...)
            port map(Clock, Reset, DIn, QOut);
  u2: CompA generic map(...)
            port map(Clk => Clock,
                     Rst => Reset,
                     D => DIn,
                     Rd => open,
                     Q(0) => QOut1,
                     Q(3 downto 1) => QOut2);
end Structure;

注释(Notes)

  • 端口映射里的转换函数仅能有一个参数
  • A conversion function in a port map must have one parameter only.
端口映射(Portmap) 1.0 使用说明 1、主要功能: 该工具可以将A机器上的某一个端口(可设置)映射到B机器的某个端口(可设置),也就是将这两个端口的数据传输对应起来,其工作流程是这样的: 在机器A的端口接收到连接请求以后,Portmap马上试图连接B机器的端口,连接成功后,Portmap就在这两个端口之间就建立起一条数据通路,进行数 据转发,任何一方关闭连接,数据通路就断开。 2、设置 所有的设置都在Portmap.ini中,每一个Entry代表建立一个数据转发器,一共支持1024个。 3、安装方式 系统可以以NT系统服务方式运行,也可以直接运行(9x下); 1、下载 直接将文件解压缩一个独立的目录下面(注意不能有空格和中文名), 2、安装服务 Portmapsvc -install 安装后,服务将把自己设为自动启动; 3、卸载服务 Portmapsvc -uninstall 4、启动和停止服务 请到NT服务控制器执行! 5、9x下直接运行 请在命令行下键入: Portmapsvc -run 即可. 4、Portmap.ini说明 Enable=1 ;; 1代表启用这个数据转发器, 0则相反 InnerIP=192.168.1.198 ;; B机器的IP地址 InnerPort=21 ;; B机器的端口 ServerIP=x.x.x.x ;; A机器的IP地址 ServerPort=5021 ;; A机器的端口 5、注册方式 该软件可以免费使用,但是如果你不希望每次启动时都打开注册对话框,你可以考虑注册,注册请联系: MSN: skyvense@msn.com ICQ: 104180227 OICQ: 2091910 Email: skyvense@online.sh.cn, skyvense@vip.sina.com 张小峰(2002/10/02 01:59)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值