Altera Home Page
文档资料 许可
在线购买 下载

  主页   |   产品   |   支持   |   最终市场   |   技术中心   |   教育与活动   |   公司介绍   |   在线购买  
  mySupport   |   器件   |   软件   |   IP   |   设计范例   |   参考设计  

 产品
   Quartus II
      SOPC Builder
      MAX+PLUS II
      ModelSim-Altera
  
 资源中心
      简介
      安装&许可
      脚本
       电路板设计& I/O
      网表阅读器 & 综合
      编译增强特性
      优化
      功耗管理
   TimeQuest时序分析器
      标准时序分析器
      仿真 & 确认
      片内调试
      HardCopy设计
  
 软件资源
      操作系统支持
      驱动安装
  
 下载与许可
      下载
   许可
  
 Quartus II EDA 支持
      Quartus II 接口
   综合工具
   仿真工具
   验证工具
   时序分析工具
   再综合工具
   电路板级工具
  
 老版软件EDA支持
      供应商类
      工具类
      功能类
  

Library Mapping File Format

A Library Mapping File (.lmf) is used to map EDIF cells to corresponding Quartus II logic functions. These Quartus II functions are directly substituted for the EDIF cells when a file is opened or compiled in the Quartus II software.

A Library Mapping File includes statements that declare the names and I/O ports of Quartus II logic functions and corresponding EDIF cells.

When compiling EDIF Input Files (.edf), you can specify the Library Mapping File as inputs to the Quartus II software in the Design Entry & Synthesis page of the Settings dialog box.

The following example shows a sample Library Mapping File that maps a single function:

LIBRARY  sample
% This Library Mapping File includes one entry that maps %
% Mentor Graphics NOR3 to Quartus II NOR3 %
BEGIN
FUNCTION nor3 (IN1, IN2, IN3)
RETURNS (OUT)
FUNCTION "$nor3" ("I0", "I1", "I2")
RETURNS ("OUT")
END

 

Library Mapping Files have the following characteristics:

  • The LIBRARY keyword, followed by the library name, occurs once at the beginning of the Library Mapping File. The remainder of the file consists of one or more pairs of FUNCTION-RETURNS statements that declare Quartus II logic functions and EDIF cells. A Library Mapping File must contain at least one pair of FUNCTION-RETURNS statements.

  • Every two pairs of FUNCTION-RETURNS statements, which are enclosed in one BEGIN-END statement, represent a mapping between a Quartus II logic function and an EDIF cell. The Quartus II FUNCTION-RETURNS statement must come first.

  • The Quartus II function ports must correspond to the EDIF cell ports in order. The EDIF cell name and individual port names must be enclosed in double quotation marks (""). Within these double quotation marks, you may use any alphanumeric character except the percent symbol (%) and additional double quotation marks. If port names span multiple lines, no continuation character is required.

  • EDIF cells that have more or fewer ports than Quartus II logic functions can still be mapped, as described in Guidelines for Mapping Unequal Numbers of Inputs and Outputs.

  • Library Mapping Files are case-sensitive. The case for EDIF cell names and EDIF input/output pin lists within a Library Mapping File must match the case in the EDIF netlist.

  • Comments must be enclosed in percent symbols (%). You must place comments anywhere outside the mapping construct, that is, before the BEGIN or after the END keyword. Nested comments are not allowed.

  • Several different EDIF cells can be mapped to the same Quartus II logic function. All of the mappings must list the same inputs and outputs. A single EDIF cell cannot be mapped to multiple Quartus II logic functions; if an EDIF cell is mapped to multiple Quartus II logic functions, only the first instance of a mapping is used.

 

 

  请填写反馈意见
  注册索取最新邮件通知