分享

File 介绍——LEF File

 mzsm 2022-06-22 发布于湖北

本公众号【读芯树:duxinshu_PD】主要介绍数字集成电路物理设计相关知识,才疏学浅,如有错误,欢迎指正交流学习。

这是集成电路物理设计的第三个系列【File】的第二篇文章,本篇文章主要讲解LEF file相关内容:

1,什么是LEF fille?

  • LEF = library exchange format

  • LEF file是可读的ASCII格式。

  • LEF file分为两种:tech.lef和cell.lef,工具需要先读入tech.lef再读入cell.lef。

  • LEF file中包含standard cell/macro的物理信息,但比GDS file包含的物理信息少。

2,TECH.LEF介绍

  • tech.lef主要包含了工艺相关的信息,如布线层数,最小线宽,线与线之间的最小间距,最小pitch等信息。

  • tech.lef还包含了单位的定义,SITE的定义,VIA的定义,Metal的信息,以及各种drc rule的定义,在APR tool中检查drc所使用的rule就是tech.lef中所定义的rule。

3,CELL.LEF介绍

  • SITE的定义:

图片

  • MACRO的定义:包含size,site, color, pin, obs等信息

    MACRO:代表一个单元cell。
    CLASS:描述cell的种类(CORE/BLOCK)。
    SITE:该cell的site属性
    PIN:cell包含所有的pin的信息,包含pin的方向:INPUT/OUTPUT/INOUTpin的属性:SIGNAL/POWER/GROUND,Pin shape及其color信息等等。
    OBS: cell包含的routing blockage信息,及其routing blockage color信息。

图片

4,APR写出LEF cmd

  • TOP模块需要BLOCK模块的LEF进行拼接和相关设计。

    FC/ICC2 cmd:

    >write_lef -design [current_block] -include cell -version 5.8 design.cell.lef
    >write_lef -design $block.frame -include cell -version 5.8 design.frame.lef

    Innovus cmd:
    >write_lef_abstract -stripePin -specifyTopLayer 9 -PGpinLayer {9 10 11} -extractBlockPGPinLayers {9 10 11} -cutObsMinSpacting -extractBlockObs design.lef

5,GDS2LEF Flow

  • 工具Library Manager

    >create_workspace -technology $tech.tf -flow normal $lib_name
    >set_app_options -list {file.gds.trace_unmapped_text {true}}
    >set_app_options -list {file.gds.port_type_map  {{power VDD} {ground VSS}}}
    >set_attribute [get_layerrs M1] number_of_masks 2
    >read_gds -verbose -trace_option all -layer_map $map_file $all_gds
    >set_current_mismatch_config auto_fix
    >set_attribute -objects [get_lib_cells */*/design] -name site_name -value unit
    >set_attribute -objects [get_lib_pins */*/I] -name direction -value in
    >set_attribute -objects [get_lib_pins */*/Z*] -name direction -value out
    >set_attribute -objects [get_lib_pins */*/VDD] -name direction -value inout
    >set_attribute -objects [get_lib_pins */*/VSS] -name direction -value innout

    >current_block *:$cell.design
    >create_port -port_type power VPP
    >create_port -port_type ground VBB

    >set_attribute [get_lib_cells */*] is_mask_shiftable false
    >check_workspace
    >commit_workspace -f
    >open_lib $lib_name.ndm
    >set_attribute [get_lib_cells */$cell] site_name core
    >write_lef -library $lib_name -version 5.8 -include cell cell.lef

6,参考文献
1,foundary LEF file
2,Fusion Compiler/ IC Compiler 2 user guide
3,Innovus user guide
4,Library Manager user guide


    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多