LEDA使用

一、配置环境变量

setenv LEDA_PATH instdir 	#instdir为leda的安装目录
set path=($LEDA_PATH/bin $path)
setenv HTML_NAVIGATOR /usr/bin/firefox  #用于查看html帮助
setenv LEDA_READER /usr/bin/evince
setenv SNPSLMD_LICENSE_FILE $LEDA_PATH/license.dat

二、运行脚本(文件run_leda)

leda \
-maxmessages 1000 \
-maxviolations 10000 \
+tcl_file leda.tcl \
| tee leda.log

三、配置文件
1、leda.tcl

project_new leda.pro  #建立新工程
project_specify_options -format verilog -severity warning -macro GTECH -version 01 #配置信息,在gui界面有对应的设置
read_verilog -f rtl_list  #verilog 文件列表
current_design spi #顶层
elaborate
checker_set_design_constraints -top spi
run
gui_start #启动gui界面,也可在run_leda那里加+gui参数

2、rtl_list

+define+DW32BIT
../src/spi.v
../src/spi_tx.v
../src/spi_rx.v
../src/spi_fifo.v
../src/spi_sync.v

三、其它
shell下可leda -h查看相关帮助
leda gui界面查看报告时可右键open HTML **来查看错误信息的帮助(需正确设置HTML_NAVIGATOR变量)

LEDA是一个商业化的算法函数库,LEDA就是Library of Efficient Data structure and Algorithm一个常用ADT的C++实现,推荐下载。简介:LEDA is a library of the data types and algorithms of combinatorial computing. The main features are: LEDA provides a sizable collection of data types and algorithms in a form which allows them to be used by non-experts. In the current version, this collection includes most of the data types and algorithms described in the text books of the area. LEDA gives a precise and readable specification for each of the data types and algorithms mentioned above. The specifications are short (typically, not more than a page), general (so as to allow several implementations), and abstract (so as to hide all details of the implementation). For many efficient data structures access by position is important. In LEDA, we use an item concept to cast positions into an abstract form. We mention that most of the specifications given in the LEDA manual use this concept, i.e., the concept is adequate for the description of many data types. LEDA contains efficient implementations for each of the data types, e.g., Fibonacci heaps for priority queues, red-black trees and dynamic perfect hashing for dictionaries, ... LEDA contains a comfortable data type graph. It offers the standard iterations such as ``for all nodes v of a graph G do'' or ``for all neighbors w of v do'', it allows to add and delete vertices and edges, it offers arrays and matrices indexed by nodes and edges,... The data type graph allows to write programs for graph problems in a form close to the typical text book presentation. LEDA is implemented by a C++ class library. It can be used with almost any C++ compiler (g++, CC, xlC, cxx, Borland, MSVC++, Watcom). LEDA is not in the public domain, but can be used freely for academic research and teaching. A commercial license is also available.
### 回答1: LCD的LEDA引脚是用来控制背光灯的开关的。LCD屏幕本身不会发光,需要通过背光灯来照亮屏幕。LEDA引脚连接到背光灯的阳极,通过控制该引脚的电平来控制背光灯的开关。当LEDA引脚的电平为高时,背光灯会亮起;电平为低时,背光灯会熄灭。因此,LEDA引脚的作用是控制LCD屏幕的背光灯的开关,使得用户可以通过控制背光灯的亮度来调整LCD屏幕的亮度和对比度。 ### 回答2: LCD的LEDA引脚是指显示屏背光的正极引脚。LEDA引脚的作用是用于连接显示屏的背光电源。正常情况下,当LEDA引脚接通电源时,显示屏的背光灯会点亮。在LCD显示屏的背面,通常会安装有一个背光模块,该模块包含了背光灯管或发光二极管。而LEDA引脚就是为了接通这个背光模块提供电源。通过控制LEDA引脚的高低电平,我们可以控制LCD显示屏的背光亮度。当LEDA引脚的电平为高时,背光灯亮度最高,当电平为低时,背光灯会熄灭。 LEDA引脚的应用十分重要。它不仅可以提供足够的光亮度,以保证我们在各种环境下都能清晰地观察到显示屏上的内容,还可以节省电能。当我们不需要显示屏背光时,可以通过控制LEDA引脚的电平为低,从而关闭背光灯,减少功耗。此外,背光灯的亮度也可以通过控制LEDA引脚的电平来调节,以适应不同光线环境下的需求。 因此,LEDA引脚在LCD显示屏中起到了提供背光电源并控制背光亮度的重要作用。通过对LEDA引脚的控制,可以实现显示屏的背光开关和亮度调节,为我们提供更好的视觉体验。 ### 回答3: LCD的LEDA引脚是指引领LED背光电源的引脚。现代的液晶显示屏通常需要借助背光来提供照明,以确保图像的清晰度和可见性。LEDA引脚用于连接背光电源,为液晶显示屏提供所需的照明。通过LEDA引脚,可以向背光单元提供电源信号,并控制背光的亮度和开关。 LEDA引脚的作用主要有以下几个方面: 1. 提供背光电源:LEDA引脚通过连接到电源线路上,为背光单元提供所需的电能。这使得液晶显示屏能够发光,提升图像质量和显示效果。 2. 控制背光亮度:通过LEDA引脚,可以向背光单元发送控制信号,调整背光的亮度。这使得用户能够根据需求调节显示屏的亮度,以适应不同的环境和使用场景。 3. 控制背光开关:LEDA引脚还可以控制背光的开关。通过改变LEDA引脚的状态,可以打开或关闭背光,从而实现对液晶显示屏的开关控制。在某些情况下,关闭背光可以节省电能。 综上所述,LEDA引脚在LCD中的作用是提供背光电源,控制背光亮度和开关。它是实现液晶显示屏亮度调节和节能功能的重要组成部分。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值