吹泡泡的小鱼的个人空间 https://blog.eetop.cn/layoutart [收藏] [复制] [分享] [RSS]

空间首页 动态 记录 日志 相册 主题 分享 留言板 个人资料

日志

SKILL脚本的加密与解密及使用

热度 20已有 8805 次阅读| 2019-10-12 10:54 |个人分类:SKILL|系统分类:芯片设计| SKILL, 加密, 解密, 使用

SKILL脚本一般是用.il 和 .ile 结尾的文件,一般设置为 .ile 结尾的文件是加密的,调用的时候需要密码。
SKILL脚本的使用有两种方法:
(1)在/home目录中的.cdsinit 文件中写入load("***.il")
(2)在CIW窗口中load("***.il")
!注意:第二种方式,只对当前使用情况下起作用,会在下一次cadence启动时失效,所以一般都用第一种方式
SKILL脚本的加密:
(1)用encrypt函数加密脚本,格式如下:
encrypt(“bindkey.il” “bindkey.ile” “hyu123”)
这样就把bindkey.il 加密为bindkey.ile 文件了,密码为hyu123,加密后的文件使用密码也不能看到源代码,并且在加载bindkey.ile的时候,也需要提供密码:
load("bindkey.ile" “hyu123”)
(2)用lineread函数配合pprint函数可以获取加密文件的源代码,这个可以方便学习别人的加密源代码哦
procedure( NlDecrypt( inputFile @optionaloutputFile "tt")  ;创建一个自定义的函数NIDecrypt
prog( (inp out line)
if( inputFile then
unless( outputFile
outputFile = sprintf(nil"%s.dec" inputFile)
   )
when( isFile( outputFile )
print( "You must specify a file thatdoesn't exist!!!\n" )
hiGetAttention( )
return()
   )
unless( inp = infile(inputFile)
printf("Unable to open input file:%s\n" inputFile)
return()
   )
unless( out = outfile(outputFile"w")
printf("Unable to open output file:%s\n" outputFile)
return()
   )
while( line = lineread(inp)
when( line != t
pprint(line out)
    )
   )
close(inp)
close(out)
else
printf("You must at least specify aninput file!\n")
return()
) ; ** if inputFile **
return(t)
) ; ** let **
) ; ** procedure **
在ICW中执行NlDecrypt(“123.ile”) 就可以恢复出来源码了,这就可以用来学习别人的源码啦。
7

点赞

刚表态过的朋友 (7 人)

发表评论 评论 (3 个评论)

回复 CKH 2020-6-10 00:03
用lineread函数配合pprint函数可以获取加密文件的源代码*


请问建一个自定义的函数NIDecrypt呢?
回复 huangtao1977 2022-10-10 16:17
lineread需要密码才行啊
回复 嗨你好 2023-1-31 15:57
"There're no (standard,legal,documented,supported) public methods to decrypt a password encrypted Skill code, using a standard Cadence licence" c.r. groups.google.com/g/comp.cad.cadence/c/xsPfNEVQeVY

facelist

您需要登录后才可以评论 登录 | 注册

  • 关注TA
  • 加好友
  • 联系TA
  • 0

    周排名
  • 0

    月排名
  • 0

    总排名
  • 6

    关注
  • 82

    粉丝
  • 29

    好友
  • 94

    获赞
  • 45

    评论
  • 11184

    访问数
关闭

站长推荐 上一条 /1 下一条

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-3-29 22:59 , Processed in 0.013518 second(s), 9 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
返回顶部