Showing posts with label EDA. Show all posts
Showing posts with label EDA. Show all posts

Monday, October 27, 2008

电子工程技术人员必须知道的网络资源大全

http://www.emcchina.org/ 电磁兼容
http://www.pcbtech.net/firstservlet PCB技术网
http://www.21ic.com/ 相信大多数人也都知道这里吧!
http://www.c51bbs.com/c51blog/index.html C语言编程
http://www.datasheet.com.cn/ 查询资料很不错,国内网站但资料是英文的
http://www.cndzz.com/down/ 电子资料下载
http://www.chinadz.com/icver/ 电子资源网
http://www.upsdn.net 便携系统开发
http://www.alldatasheet.com 不错的器件资料网站,内容很全,相当不错,英文
http://www.ednchina.com/ 电子设计技术
http://www.mculib.com/ 三毛电子世界

Sunday, February 10, 2008

EDA软件的License的设置

FLEXlm浅谈之一 License文件格式
License文件由注释行,Server行,Demon行,以及Feature行构成, 另外有一个续行符'\'
用来表示一行的继续.
注释行
注释行
~~~~~~~~
当一行的开始是'#'符号时,该行被License Manager(lmgr32xx)认为是注释行,有时候
'|'也可以作为注释行的开始.
Server行
~~~~~~~~~~
Server行用来标识一台特定的主机,其格式是:
SERVER nodename id port-number
| | | |
| | | |___TCP端口号,如 1700
| | |
| | |___主机的ID号,Win95/98/NT平台下通常是网卡物理地址
| |
| |___主机的名称,win95/98/NT下可以用ipconfig命令看到
|
|____Server行开头的关键字,标识该行为Server行,不能更改.
例如:
SERVER hostname 000012345678 TCP:1700

Daemon(或Vendor)行
~~~~~~~~~~~~~~~~~~
Deamon行是用来标识不同的卖主(Vendor-中文里译做卖主怎么觉着老土老土象是卖菜的:P)
或者说是用来标识不同的软件商吧, 其常见格式是:
DAEMON daemon_name daemon_path
| | |
| | |___daemon的路径
| |
| |_______daemon的名字
|
|___Deamon行的关键字,Flexlm6.0以后的版本也支持用VENDOR
例如:
DAEMON cdslmd c:\cdslic\bin\cdslmd.exe
| |
| |___Cadence License Daemon的路径
|
|___Daemon的名字为cdslmd (Cadence License Manager Daemon 的简称)

Feature行
Feature行
~~~~~~~~~~~~
Feature行是用来对软件特定的功能进行限制的,其常见的格式为:
FEATURE name vendor version expiration_date n Key "Vendor_String" hostID
| | | | | | | | |
| | | |_版本号 | | | | |__主机ID
| | | |_过期时间 | | | 可省略
| | |_厂商标识 | | |
| | | | |___厂商定义的字符串
| |__Feature名称 许可的终端用户个数| |
| (同时使用) <- |__20个字节的密码
|___Feature行的关键字
例如:
FEATURE CADV_256SUPUC_ALL cdslmd 8.000 1-jan-0 9 2884F271C1E6E3A81DB8 "J"
| | | | | | |_Vendor
| | | | | | String
| | | | |_允许9个终端用户 |_密码
| | | |
| | | |_0年1月1日过期,0年表示永久有效
| | |
|_Feature名称 | |_版本8.0
|_Cadence License Manager Daemon
续行符号'\'
~~~~~~~~~~~~~~
一行太长需要续行的时候, 在行末尾用'\'符号表示续行,如上面的Feature又可以写为:
FEATURE CADV_256SUPUC_ALL cdslmd 8.000 1-jan-0 9 \
2884F271C1E6E3A81DB8 "J"
字符串与串之间可以用空格或者TAB隔开, Lmgr不理睬多余的空格和TAB.
详细的FLEXlm文件格式可以参考Flexlm的End-User-Manual.
FLEXlm浅谈之二 设置环境变量

以下都是针对Win95/98以及NT来说的.
一般说来,License Manager需要一个环境变量才能找到License文件.(有的软件不需
要设置环境变量,只需将license文件放置到它的某个目录下面就可以了,如ActiveVHDL3.3,
只需将license.dat放在它的dat目录下.)
通常环境变量名称是LM_LICENSE_FILE, 大小写无关, Win95/98下的设置方法是在
autoexec.bat中加入一行: (不包括下面那些说明)
SET LM_LICENSE_FILE=c:\flexlm\mylicense.dat
| |
| |_环境变量路径: 该例是License文件的名称及路径
|___变量名称
如果有多个License文件,可以用分号隔开,如:
SET LM_LICENSE_FILE=c:\flexlm\license1.dat;d:\flexlm\license2.dat
应用软件的License Manager会自动遍历环境变量指定的所有License文件, 查找它所需
要的Feature, 不同License文件路径的先后次序无关, 只有WorkviewOffice7.5比较特殊,
必须将它的环境变量放在第一个才能工作,否则它就不工作:
SET LM_LICENSE_FILE=c:\WVO75\license.dat;c:\flexlm\mylicense.dat
除了LM_LICENSE_FILE这个环境变量名称外, 有些软件还使用自己特定的环境变量
名称. 安装软件的时候, 安装程序会一般会自动添加这些环境变量. 如Specctra8.0使
用CDS_LIC_FILE环境变量名称:
SET CDS_LIC_FILE=c:\cdsLic\license.dat
MentorGraphicsRenoir以及ModelSimEE如果安装的时候选择Mentor Graphics License
Manager, 软件会使用MGLS_LICENSE_FILE环境变量:
SET MGLS_LICENSE_FILE=c:\flexlm\license.dat
如果License是由Server提供的, 那么环境变量的路径应该给出Server的名称以及端口,
而非License文件的路径以及名称, 如:
SET LM_LICENSE_FILE=1700@www.myhost.edu.cn
|
|__让License Manager去
www.myhost.edu.cn的1700端口获取License
WinNT下设置环境变量需要在控制面板里面添加, 格式相同.
FLEXlm浅谈之三 - License文件使用技巧

这次想解决的问题是 -- License文件多了怎么办?
不知道为什么FLEXlm很流行, 机器里面装得EDA软件多了, 会有若干个License.dat.
由于环境变量只是告诉Lmgr(License manager)从哪儿找它所需要的License文件, 所以:
第一个解决办法是可以将License.dat换个名字,如pwpcb.Lic, cct80.Lic等等,
然后用设置多个License文件环境变量的办法将每一个文件的路径添加到环境变量中:
SET LM_LICENSE_FILE=c:\flexlm\pwpcb.Lic;c:\flexlm\cct80.Lic
License文件的名称/后缀可以任意选取,只要保证变量设置正确以及License文件有效即可.
还可以这么做: ---- 不推荐使用
只设置一个环境变量设置: SET LM_LICENSE_FILE=c:\flexlm\license.dat
然后把所有的License文件都copy到flexlm目录下, 为了便于区分, 取比较容易记的名字,
例如PowerPCB2.1.Lic, ModelSimEE5.2e.Lic, Specctra8.0.Lic,等等,
需要用哪个软件的时候, 把相应的License文件copy一份然后改名为license.dat即可.
Copy, Rename, Copy, Rename...太麻烦了:(, 于是采用第二种解决办法--合并License.
(注:仅用于没有Server Line的License文件,且软件用的环境变量名为LM_LICENSE_FILE)
前面简单介绍过License文件的格式, License文件的内容不再是陌生的了,可以用文
本编辑器打开所有的License文件,把它们的内容统统copy&paste到license.dat里面,
注释部分可以任意修改,其它内容最好保持原样, 然后只设置一个环境变量:
SET LM_LICENSE_FILE=c:\flexlm\license.dat
FLEXlm浅谈之四 - FLEXlm Server

推测FLEXlm这个名字应该是Flexible License Manager的简写.
FLEXlm Server方式的License应该如下设置:
License.dat文件放在主机中, 主机运行Server提供License服务, 客户端的环境变量
设置为
SET LM_LICENSE_FILE=[TCP/IP端口]:[主机名称],
其中端口和主机名称应该和主机的License文件中的Server Line一致, 前面已经简单介绍
过, 这里便不再赘述.
启动Server的方式有两种, 一是DOS命令行方式, 二是Windoz的窗口方式
1. DOS 方式
1. DOS 方式
在c:\flexlm目录下可以找到一个Lmgrd.exe文件---License Manager Daemon, 这个
Daemon是FLEXlm Server.
License.dat文件需要和Daemon文件放在同一个目录下,
启动 license server,可在 c:\flexlm 目录下执行:
c:\flexlm\lmgrd -app -c
关闭 license server,可在 c:\flexlm 目录下执行:
c:\flexlm\lmutil lmdown
lmutil.exe是License Manager Utility.
2. Windoz的窗口方式
安装某些软件的时候, 会有一个安装License Server的选项, 选中它安装完成后会在
控制面板中发现一个FLEXlm License Manager的小工具. 在FLEXlm License Manager
Setup的TAB里可以选择Daemon, License文件,以及输出的日志文件; Control的TAB中
可以启动/关闭Server以及查看Server状态, 另外几个TAB还提供了一些其它辅助功能.
Windoz下的这个Flexlm License Manager要比命令行方式的方便一些, 至少它可以
浏览以选取Daemon/License文件, 不过有时候发现控制面板里面找不到. 事实上它是
一个控制面板的扩展应用程序, 如在PowerPCB目录下可以找到Flexlm.cpl这个文件,
用鼠标双击它就运行出上面提到的那个管理窗口.
没有研究过解决一个主机运行多个Server分别对应不同软件的问题.

FLEXlm是应用广泛的License管理工具,它以使软件License能够在网上浮动而出名。浮动的License有利于软件的使用和对 License的管理,这使得用户能够高效地使用有效的许可,并使管理者能够控制允许使用它的节点。由于有大约1500厂商使用FLEXlm管理 License,所以CAD系统管理人员极有可能要同时安装和管理来自不同厂商的License或同一厂商多个产品的License文件。可采取以下方法 避免产生冲突:
  (1)用一个服务器运行一个Lmgrd(License文件的后台管理程序)和多个License文件;
  (2)用一个服务器运行多个Lmgrd和License文件;
  (3)运用多个服务器节点,每个服务器运行单独的Lmgrd和License文件。
  第一种选择主要适用于高版本的Lmgrd,V6之前的FLEXlm,每个Lmgrd只能管理一个License文件;第二种选择,将使用一台服务器,但需要运行多个Lmgrd;第三种选择,必须使用多个License服务器。
  一、服务器端设定
  1. License文件的设定
  在使用FLEXlm进行管理的License文件中一般有SERVER行,如图1所示,它通过SERVER行的hostname和hostID定义License服务器。
  图1 SERVER语名行
  2. 服务方式的选择
  (1) 一个服务器运行一个Lmgrd 和多个License文件 如果多个License文件具有相同的hostID,则可以通过修改hostname进行合并。合并时,首先将多个 License文件加到一个文件中,然后修改SERVER行,并且只保留一个SERVER行。对于Windows NT操作系统,应在各License的默认存放位置保存一个合并后的备份,这样每个软件将在其默认位置找到License信息,从而避免了对 LM_LICENSE_FILE的设定;对于UNIX操作系统,可以建立一个默认位置到License存放位置的Link。合并后的License文件, 就可以使用同一个Lmgrd。
  (2)一个服务器运行一个Lmgrd和一个License文件 如果HostID不一样,则这些License服务只能运行于不同的服务器节点上,并且License不能合并。可以选择使用一个服务器运行一个Lmgrd和License文件。
  (3)一个服务器运行多个Lmgrd和License文件 如果多个License未进行合并,可以通过在同一台机器上启动多个Lmgrd,每个Lmgrd管理一个License文件。使用多个Lmgrd管理多个License文件对服务器的性能并没有明显影响。
  如果License是由不同版本的FLEXlm产生的,一般是新版本可以管理旧版本的License文件。所以应使用最新的Lmgrd和Vendor daemon。另外,当用一个服务器的多个Lmgrd管理多个License文件时,应该注意任何二个License文件的post都不能一样,并且对于 每个License而言,应选用合适的Lmgrd。
  二、 客户端设定
  当使用客户端应用程序时(a Licensed application),可以通过在系统的环境变量中设定LM_LICENSE_FILE,使Application能够指向不同服务器上的License文件。
  如果要使a Licensed application使用不同服务器的License(每一个License服务器都有单独的一个License文件),客户端应将需要用到的License文件拷贝到本机目录下,并指定LM_LICENSE_FILE环境变量。
  UNIX:  % setenv LM_LICENSE_FILE lfpath1 : lfpath2:.... : lfpathN
  Windows: lfpath1 ;lfpath2:.... ;lfpathN
  LfpathN为第N个License的路径;UNIX下路径间用“:”隔开;Windows/NT下路径间使用“;”隔开;
  这样,每个Licensed application在启动时将依次查询LM_LICENSE_FILE中所指定的License文件,并向相应的License服务器申请许可,以便 用户能从所列的服务器得到许可。LM_LICENSE_FILE也可以使用各License文件中所指定的“post@hostname”。下面以 Windows NT为例介绍多个FLEXlm的安装。
  三、同一机器上多个FLEXlm License Server的安装
  (1)以Administrator身分登录;
  (2)在C盘建C:\FLEXlm 目录,并拷贝相关文件到其下;
  (3)在C:\FLEXlm下建立欲安装License Server的软件目录,放置各软件的License文件, Daemon和Daemon所需的动态连接库;
  (4)修改License.dat的SERVER行和DAEMON的位置,并启动FLEXlm License Manager,界面如图2所示;
  图2 FLEXlm License Manager界面
  (5)在Setup修改Service Name,输入适当名称,以区别是何种License服务;利用Browse选择合适Lmgrd.exe和对应的License.dat并指定 Debug.log的放置路径;
  (6)选中“StartServer at Power-Up”与“Use NT Services”,这样下次启动机器时,将自动启动该License服务;
  (7)点击Control按钮检查Service Name是否与设定名称相同,如果不同,回到“Setup”重新选择Service Name;如果一样,点击“Start”启动该License Server;点击“Status”检查License Server启动情况,若出现Server_name: License server UP (MASTER),表示 License Server 启动成功;
  (8)安装另外的License Server:可依上述⑶~⑺重新执行一次即可;
  (9)切换不同License Server:在“Setup”中选择适当的“Service Name”,然后启动或停止相应的License服务;
  (10)移除License Server:在“Setup”选择适当的“Service Name”,然后按“Remove”即可。

Verdi/Debussy Crack

(gdb) break snsCheckOut
Breakpoint 1 at 0xafc80bc
(gdb) disassemble 0xafc80bc
Dump of assembler code for function snsCheckOut:
0x0afc80bc : ? ? push ? %ebp
0x0afc80be : ? ? mov ? ?%esp,%ebp
0x0afc80bf : ? ? push ? %edi
0x0afc80c0 : ? ? push ? %esi
0x0afc80c1 : ? ? push ? %ebx
0x0afc80c2 : ? ? sub ? ?$0x342c,%esp
0x0afc80c8 : ? ?call ? 0xafc80cd
0x0afc80cd : ? ?pop ? ?%ebx
0x0afc80ce : ? ?add ? ?$0x1722953,%ebx
0x0afc80d4 : ? ?mov ? ?0x34(%ebp),%esi
0x0afc80d7 : ? ?mov ? ?0x18(%ebp),%al
0x0afc80da : ? ?mov ? ?%al,0xffffcbd3(%ebp)
将
55 89 e5 57 56 53 81 ec 2c 34 00 00
替换成
31 c0 c3 57 56 53 81 ec 2c 34 00 00
替换时0x342c 变成2c 34
检验是否成功:
(gdb) break snsCheckOut
Breakpoint 1 at 0xafc80bc
(gdb) disassemble 0xafc80bc
Dump of assembler code for function snsCheckOut:
0x0afc80bc : ? ? xor ? ?%eax,%eax

0x0afc80be : ? ? ret
0x0afc80bf : ? ? push ? %edi
0x0afc80c0 : ? ? push ? %esi
0x0afc80c1 : ? ? push ? %ebx
0x0afc80c2 : ? ? sub ? ?$0x342c,%esp

UNIX下修改HOSID与MAC

UNIX 系列的hostid 与 MAC 无关,是写在 eeprom 里的一个硬件标识,一般作为软件安全锁。常用的还有MAC,CPUID, HDD ID 等,一般是不可以改的或不易改的。

关于如何修改hostid的问题
以下这篇文章是我去年修改hostid时找的一篇文章!对blade150有效,其他型号的机器不确定!
1.查找eeprom地址修改
该方法对从station5、station20等等直到Blade100、Blade150系列都适用,注意操作过程中屏幕显示结果的细小差别,不要完全照搬。
以blade150+solaris8为例,原始HOSTID为:83188869,Ethernet address:0:3:ba:18:88:69;拟改为80cf7afe。
Step1: Stop+a 【进入OK状态】
Step2: OK show-devs 【按空格键找到包含eeprom的全路径名】
Step3: OK cd /pci@1f,0/ebus@c/eeprom@1,0
注意不同的eeprom版本输出的eeprom路径名会不同,请以屏幕显示为准。
step4:OK .properties 【有些版本可能为.attributes】
找到address值fff58000
step5: OK fff58000 >;physical
step6: OK showstack
step7: OK 2000 memmap
step8: OK 1fd0+
step9: OK 30 dump
注意看附图中的输出结果,从fff55fd8开始各位的含义如下:

字节 地址 内容
0 fff55fd8 总为 01 - format/version number
1 fff55fd9 hostid的第一个字节【机器类型】
2-7 fff55fda~f ethernet address
8-b fff55fe0~3 生产日期,通常为0,不一定是真实日期
c fff55fe4 hostid的第二字节
d fff55fe5 hostid的第三字节
e fff55fe6 hostid的第四字节
f fff55fe7 IDPROM checksum - bitwise xor of bytes 0-e

Step10: OK 80 fff55fd9 c!
【第一个字节一般不推荐修改,如果一定要改,好像也是没有问题的。】
step11: OK cf fff55fe4 c!
step12: OK 7a fff55fe5 c!
step13: OK fe fff55fe6 c!
step14: OK 01 80 xor
step15: OK 00 xor
step16: OK 03 xor
【从fff55fd8开始向后作xor,直到fff55fe6处作完为止,假设输出结果为f6,见下一步的输出为f6。注意上图中的hostid的第二、三、四字节的值在作xor时要用新的值cf、7a、fe】
next: OK fe xor
OK f6
next: OK f6 fff55fe7 c!
next: OK banner
查看修改正确后可以输入boot重新引导,如果banner显示的结果有错,有两种方法恢复出厂设置,一是用stop+n组合键恢复,如果stop+n无效,则在OK状态下输入set-defaults即可。
上面的示例没有修改Ethernet address,用户也可以根据需要修改,修改对应字节即可。

Thursday, December 6, 2007

ECO Flow

Here is a useful checklist you should use when doing your ECOs.

  1. RTL bug fix
  2. Correct your bug in RTL, run simulations for the specific test cases and some your general golden tests. See if you corrected the problem and more important didn’t destroy any correct behavior.

  3. Implement ECO in Synthesis netlist
  4. Using your spare cells and/or rewiring, implement the bug fix directly in the synthesis verilog netlist. Remember you do not re-synthesize the entire design, you are patching it locally.

  5. Run equivalence check between synthesis and RTL
  6. Using your favorite or available formal verification tool, run an equivalence check to see if the code you corrected really translates to the netlist you patched. Putting it simply - the formal verification tool runs through the entire state space and tries to look for an input vector that will create 2 different states in the RTL code and the synthesis netlist. If the two designs are equivalent you are sure that your RTL simulations would also have the same result (logically speaking) as the synthesis netlist.

  7. Implement ECO in layout netlist
  8. You will now have to patch your layout netlist as well. Notice that this netlist is very different than the synthesis netlist. It usually has extra buffers inserted for edge shaping or hold violation correction or maybe even totally differently logically optimized.
    This is the real thing, a change here has to take into account the actual position of the cells, the actuall names etc. Try to work with the layout expert in close proximity. Make sure you know and understand the floorplan as well - it is very common to connect a logic gate which is on the other side of the chip just because it is logically correct, but in reality it will violate timing requirements.

  9. Run equivalence check between layout and synthesis
  10. This is to make sure the changes you made in the layout netlist are logically equivalent to the synthesis. Some tools and company internal flows enable a direct comparison of the layout netlist to the RTL. In many it is not so and one has to go through the synthesis netlist change as well

  11. Layout to GDS / gate level simulations / STA runs on layout netlist (all that backend stuff…)
  12. Let the layout guys do their magic. As a designer you are usually not involved in this step.
    However, depending on your timing closure requirements, run STA on the layout netlist to see if everything is still ok. This step might be the most crucial since even a very small change might create huge timing violations and you would have to redo your work.
    Gate level simulations are also recommended, depending on your application and internal flow.

Friday, November 30, 2007

MIT - 6.823 Computer System Architecture - Fall 2007 (Lecture Notes)

  • L-01: Computer System Architecture, pdf, ppt [09/05/07]
  • 1-Intro: Introduction to Pin, pdf [09/05/07]
  • L-02: Influence of Technology and Software on Instruction Sets: Up to the dawn of IBM 360, pdf, ppt [09/10/07]
  • L-03: Instruction Set Evolution in the Sixties: GPR, Stack, and Load-Store Architectures, pdf, ppt [09/12/07]
  • L-04: Hardwired, Non-pipelined ISA Implementation, pdf, ppt [09/17/07]
  • L-05: Instruction Pipelining and Hazards, pdf, ppt [09/19/07]
  • L-06: Microprogramming, pdf, ppt [09/26/07]
  • L-07: Cache Organization, pdf, ppt [10/01/07]
  • L-08: Memory Management: From Absolute Addresses to Demand Paging, pdf, ppt [10/03/07]
  • L-09: Modern Virtual Memory Systems, pdf, ppt [10/10/07]
  • L-10: Complex Pipelining, pdf, ppt [10/15/07]
  • L-11: Complex Pipelining: Out of Order Execution and Register Renaming, pdf, ppt [10/17/07]
  • L-12: Branch Prediction, pdf, ppt [10/22/07]
  • L-13: Speculative Execution, pdf, ppt [10/24/07]
  • L-14: Advanced Memory, pdf, ppt [10/29/07]
  • L-15: Multithreading, pdf, ppt [10/31/07]
  • L-16: VLIW/EPIC: Statically Scheduling ILP, pdf, ppt [11/05/07]
  • L-17: Vector Computers, pdf, ppt [11/07/07]
  • L-18: Virtual Machines and Dynamic Translation: Implementating ISA's in Software, pdf, ppt [11/14/07]
  • L-19: Reliable Architecture, pdf, ppt [11/19/07]
  • L-20: Symmetric Multiprocessors: Synchronization and Sequential Consistency, pdf, ppt [11/26/07]

MIT student projects - 6.884 Complex Digital Systems

  • Out-of-Order SMIPS Processor Using Tomasulo's Algorithm
  • Cliff Frey and Vicky Liu
  • Memory Access Scheduler
    Matt Cohen and Alvin Lin
  • Cache-Coherent Memory System Using a Ring Network
    Albert Chiou and Mat Laibowitz
  • High-Performance SMIPS Processor
    Jonathan Eastep
  • Hardware Implementation of an 802.11a Transmitter
    Elizabeth Basha, Steve Gerding, and Rose Liu
  • The Pipe Dream: Out-of-Order SMIPS Processor using a Reorder Buffer
    Karthik Balakrishnan and Michal Karczmarek
  • Monday, July 9, 2007

    Cadence的License Crack

    本文之方法的适用范围:Cadence采用新的flexlm(即:flexlm10.0及以上版本)之前的所有软件。
    所用工具:EFA LicGen 0.4b
    Crack 步骤:
    找到对应的feature。比如,我想用Cadence的Migrate这个工具,但是我现在没有License。首先第一步需要找到Migrate这个工具所对应的feature。我找feature有两种方法:第一,运行对应的命令,大部分情况下Cadence会报告缺少哪个feature;第二,在第一种方法行不通时,查找相应的manual,一般可找到相应的feature。我采用以上两种方法,目前还没有发现第三种情况。
    修改packs目录下的Cadence Design Systems_71.src文件,按照以下格式加入新的一行(假设我采用以上方法找到的feature为Virtuoso_Layout_Migrate):
    FEATURE Virtuoso_Layout_Migrate cdslmd 1000.0000 permanent uncounted 0 %h
    利用LicGen.exe产生新的license。
    将新产生的对应于FEATURE Virtuoso_Layout_Migrate cdslmd 1000.0000 permanent uncounted 0 %h的一行copy并附加到原来的License的后面。
    恭喜你,你可以使用cadence的Migrate工具了!

    对EFA LicGen 0.4b的进一步理解:
    我所得到的EFA LicGen 0.4b包括两个文件licgen.dll、LicGen.exe和三个目录packs、Win9x、WinNT。毫无疑问,licgen.dll、 LicGen.exe这两个文件是非常重要的,我将它们理解为主程序。Win9x和WinNT这两个目录我不关注,因为我都是在solaris或者 Linux下使用EDA软件。Packs目录下包括三种类型的文件:.src,.lpd和.dll。.src和.lpd是一一对应的,比如: Cadence Design Systems_71.src需要和Cadence Design Systems_71.lpd一起协同工作。至于.dll文件,只有FPGACompilerII_3.6.dll、Synopsys.dll和 Synplicity.dll,其它的工具都没有对应的dll文件。难道Synopsys工具和其它EDA工具的加密机制不同?
    可见,有了EFA LicGen 0.4b之后,关键就是需要.src和.lpd文件了,.src文件可以理解为一个feature行的样本,而关键中的关键就是.lpd文件了,.lpd文件是EFA发布的还是其它大牛发布的?

    Monday, March 5, 2007

    Debugging Formal Verification (FV) Problems .. FV Primer

    Anyone who has been around for a while in the FV (Formal Verification) world for sometime agrees that FV is easy as long as the FV environment is setup correctly. Ofcourse when FV says failure, it is a whole different issue. BTW, I'm talking about formal verification for Digital Ckts. Will cover FV for analog circuits later.

    Just for the record, Most of us in the industry or most companies which develops FV tools, when they say formal verification, they mean equivalence checking. There is another type called model checking as well. Search google if you want to know more about model checking as well.

    This is definition of Formal verification according to wikipedia:
    http://en.wikipedia.org/wiki/Formal_verification

    There are many people who don't understand when FV has to be used and when functional simulations have to be used. I met one person who thought FV replaces the simulations . So, I just want to clear things first. Once the RTL coding is done, you might want to check if the written RTL conforms to the spec and is functionally correct without any glitches etc. Once this RTL simulations (RTL functional simulations) pass, the design is then synthesized.

    You want to do formal verification to answer the following question: Is the synthesized circuit functionally same as intended in the RTL? Yes, you can still do gate level simulations and verify the same. But simulations are slow and you need to do exhaustive simulations to cover all the possible vectors for a given circuit. Formal Verification can do the same in less time mathematically.

    I'm not going to talk about the different types of simulations and pros/cons of each here. Similarly I'll not talk about assertion based simulation either. There are tons of articles and lecture notes on the web.

    Formal verification is still a niche area and less than 25% of the design companies are using formal verification today. Partly because the Formal tools are either costly, takes time to setup the env and there aren't enough resources for FV.

    From the methodology perspective, there are two methodologies hierarchical and flat based.

    Hierarchical Methodology: It is very fast and verifies the design by partitioning it based on the hierarchy. It is very similar to the bottom-up approach in synthesis. Once the lower modules/blocks are verified, it makes them as black boxes and then verifies the next upper level in the hierarchy. Once all the modules/blocks are verified and blackboxed, it then verifies at the top level (glue logic). There are some inherent issue that comes with this methodology: there are can be some false failures because of the blackbox approach. If there are cases when the constants have to be propagated from the top level, then the tool will not be able to do so and hence it might be flagged as false failures. It is not problem with the FV tools, but inherently a draw back with the methodology itself.

    Flat Level Methodology: If the design is flattened (hierarchy is collapsed) in synthesis,this is the only way one can verify the circuit. The run-times can vary depending on the design size and complexity and the tool of course.

    Having talked about the FV methodologies, lets talk about two important pieces of Formal Verification:

    Setting up Formal Verification Environment: This is not a straight forward process. Some of the things that have to be noted are:

    Talk to your logic/physical synthesis engineer. Yes, without his inputs, you will never know what options/configurations he has used in synthesis and without this knowledge, you will never be able to let your FV tool what the synthesis tool has done in terms of optimizations. You need to mimic the synthesis environment as much as possible.

    At the minimum, you need to know the following:

    1. Any Pragmas that have been used in RTL like compiler directives, translate_off/on, full_case/parallel_case, async_set_reset etc

    2. If specific value is used for Dont-care optimization.

    3. If constant propagation is enabled and used

    4. If any logic is marked as set_dont_touch or force kept

    5. If any ports/nets/pins are tied to constants.

    6. If you are comparing pre and post DFT netlists, then you need to disable the scan logic by driving scan_enable/test_mode ports to a constant value. So, get this information.

    7. If any models doesn't have the definition available or if any model is assumed or modeled as blackbox in synthesis, you need to get that list and blackbox the same.

    8. If clock gating is enabled in synthesis, you need to get the clock gating configuration (name of clock gating cell used in synthesis);

    9. Get the list of libraries used in synthesis; it is recommended to get and read the .lib into the FV tool (assuming FV tool can read .lib directly) rather than using the verilog netlist written out of synthesis tool. Some synthesis tools don't write the complete definition of a model and they just write the interface for the module. If you don't have .lib files, at the minimum, verilog simulation models need to be read in.

    10. Designware: Get the list of the designware components used in the design. There are some limitations as to what designwares can be formally verified. For example, designware multipliers, ECC etc can't be formally verified and has to be simulated to check the functionality.

    11. Re-timing: Check if re-timing is enabled in the synthesis; some synthesis tools automatically detect and perform re-timing when some datapath components are used.

    12. Clock gate cloning: If clock gate cloning is done, some FV tools require you to explicitly mention the list of all clock gate cells that got cloned and their names. Otherwise you might see false failures.

    13: Sometimes synthesis tools synthesize sequential elements whose state is inverted with respect to the RTL; so it is the case, you need to enable that option in the FV tool.

    14. Naming Convention: Most synthesis tools follow a standard naming conventions and sometimes your FV tool might not be able to map the element/object in the reference netlist to implementation netlist. So, get the naming conventions in your synthesis tool and configure your FV tool accordingly.

    15. check if there is any default value set for undriven nets/pins/ports.

    16. Some advanced options like if d-input of the flop is/has tied to be constant (1 or 0) or if the clock has been/need to be tied to constant high or low, enable the relevant configs.

    17. check if there are datapath components in the design. Sometimes, if the size of the RTL inferred multipliers is more than 40bit, then some special datapath solving techniques might be necessary. Also there is a limitation on this FV technology on how much wide multipliers you can verify. If you believe you might hit the limit,then better blackbox that component. A 128bit multipler can takes ages to get it verified.

    18.Port mapping/aliases: Sometimes during CTS, the physical synthesis tools while building clock-tree/reset-tree networks, they might duplicate the ports (for example there might be a reset port called “rst” and tool might have created rst_l port as well which is logically and functionally equivalent to “rst”). So, if you are doing FV between pre-CTS and post-CTS netlists, you need to take care of this either by port mapping or through some aliasing features in the tool. Else the tools might report false failures.

    Debugging Formal Verification Issues: These are some tips and by no means a complete guide. Debugging comes by experience and the more issues you solve, the more insight you will have. Some of the bullets below might look like a repeat of the points I mentioned in the above section "Setting up formal verification environment".

    General suggestion: Formal Verification can be done between RTL and synthesis netlist or between synthesis netlist and DFT netlist etc, depending on the stage and flow you are in. It is always recommended to verify the circuit in increments between two immediate stages in the flow. If you hit a FV failure, it will be very difficult to narrow down which stage in the flow has caused this and which optimization step or command is causing this.

    Also when a formal tool raises a flag, it is recommended to first do an simulation between reference (Golden) and implementation netlist first. Most formal tools generate test vectors for the failing compare point and you can use the same to simulate and see if the simulation results match for reference and implementation. If they match, then it means it is a false failure and you know that your synthesis tool is correct.

    Some formal tools have very advanced capabilities like generating a test bench for a given logic cone. So, if you are ever caught between two formal tools and they disagree on any result, then generate the test vectors and run functional simulation using it. Some formal tools don't generate test vectors (they use vector less approach), then get the logic core on which the formal tool is complaining and generate the testbench for that logic cone in the other formal tool and then run simulations.

    casez and casex statements : Somes times synthesis tools infer the casex/casez statements and based on the don't care optimization algorithms, they might create a different logic than the formal tool. For example, if there is an if - else loop and if the variable is not declared earlier, but used in the loop, synthesis tool might not always infer a latch if it feels that there is no necessity to store a state. What I would suggest is, check for 2 cycles and see if there is a necessity, if not, then synthesis tool is correct as latch is redundant here.

    Pragmas: Make sure the intepration of pragma's between synthesis, formal and simulation tool is same. Some simulators like ncsim doesn't support certain synthesis pragma's like translate_off/on and so they might interpret the logic and gives incorrect results when you want to see if your formal tool is flagging an false error.

    Also, in most of the cases, formal errors get introduced during the RTL elaboration stage and certain RTL constructs like generate statements, genvar, multi-dimensional arrays etc can confuse our little buddy (RTL elaborators). So check for these advanced or complex constructs in RTL.

    Then check for if any variables are used but never given a value, etc. These are some corner cases though

    Lastly, formal errors come from very small snippet of the RTL code. So, using divide and conquer approach, reduce the design to as small as possible while maintaining the same formal error on the same compare points/logic cone.

    If, you see thousands of failing compare points, you'd better check your SETUP to see if there is anything wrong. Unless the synthesis tool is developed by people who don't understand it, it is not very common to see thousands of failing points for a decent sized test case (300k cell count). If you do see, then my advice would be, STOP USING THAT SYNTHESIS tool

    Thursday, December 7, 2006

    IC61宣告破解

    用efa_04b可以生成,只需加SIGN2=0项,用Floating的。
    FEATURE 100 cdslmd 6.100 permanent uncounted %h ck=0 SIGN2=0

    关于cadence的lic crack问题

    鉴 于论坛上经常有人问及cadence的license问题,本人尽自己微薄之力,介绍一下cadence工具的license crack问题。本文所介绍的license crack比较浅显,至于更高级的license crack问题,请LONG等人进行进一步的介绍。

    本文之方法的适用范围:cadence采用新的flexlm(即:flexlm10.0及以上版本)之前的所有软件。
    所用工具:EFA LicGen 0.4b
    Crack 步骤:
    找 到对应的feature。比如,我想用Cadence的Migrate这个工具,但是我现在没有License。首先第一步需要找到Migrate这个工 具所对应的feature。我找feature有两种方法:第一,运行对应的命令,大部分情况下Cadence会报告缺少哪个feature;第二,在第 一种方法行不通时,查找相应的manual,一般可找到相应的feature。我采用以上两种方法,目前还没有发现第三种情况。
    修改packs目录下的Cadence Design Systems_71.src文件,按照以下格式加入新的一行(假设我采用以上方法找到的feature为Virtuoso_Layout_Migrate):
    FEATURE Virtuoso_Layout_Migrate cdslmd 1000.0000 permanent uncounted 0 %h
    利用LicGen.exe产生新的license。
    将新产生的对应于FEATURE Virtuoso_Layout_Migrate cdslmd 1000.0000 permanent uncounted 0 %h的一行copy并附加到原来的License的后面。
    恭喜你,你可以使用cadence的Migrate工具了!
    对EFA LicGen 0.4b的进一步理解:
    我谈谈我对EFA LicGen 0.4b的比较浅显的理解, 不对之处敬请大侠批评指正。
    我 所得到的EFA LicGen 0.4b包括两个文件licgen.dll、LicGen.exe和三个目录packs、Win9x、WinNT。毫无疑问,licgen.dll、 LicGen.exe这两个文件是非常重要的,我将它们理解为主程序。Win9x和WinNT这两个目录我不关注,因为我都是在solaris或者 Linux下使用EDA软件。Packs目录下包括三种类型的文件:.src,.lpd和.dll。.src和.lpd是一一对应的,比如: Cadence Design Systems_71.src需要和Cadence Design Systems_71.lpd一起协同工作。至于.dll文件,只有FPGACompilerII_3.6.dll、Synopsys.dll和 Synplicity.dll,其它的工具都没有对应的dll文件。难道Synopsys工具和其它EDA工具的加密机制不同?
    可见,有了EFA LicGen 0.4b之后,关键就是需要.src和.lpd文件了,.src文件可以理解为一个feature行的样本,而关键中的关键就是.lpd文件了,.lpd文件是EFA发布的还是其它大牛发布的?
    论坛上有好多人在询问ISE TCAD的license crack问题,是不是需要请论坛中的大牛写一个相应的lpd文件?

    另外,附送一个cadence公司已经crack好的license给各位同仁。该license不需要启动flexlm,直接在.cshrc(以c shell为例)中做如下设置即可:
    Setenv LM_LICENSE_FILE path/key.Cadence


    如果已有能够正常运行的license,能够反向计算出其seed和Vendor key吗?(应当不行)

    点击浏览该文件
    --
    ------------------------------------------------
    Enchanter Chi
    < ensoul.magazine@gmail.com>
    ------------------------------------------------