在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
12
返回列表 发新帖
楼主: wapoca

[求助] 如何提取CDL时让电阻例化?

[复制链接]
发表于 2012-5-6 19:33:21 | 显示全部楼层
回复 10# wapoca


    ...没坐过,咋知道
发表于 2012-5-7 13:18:20 | 显示全部楼层



Step 1: check (and try) if you get to generate correct netlsit from hspiceD views. -> You already mentioned your library did not have hspiceD views.

Alternative: use a (sed/awk/perl) script to post-process the CDL netlist.

    RGPS_1 net1 net2 $[RGPNC] $W=1u $L=10u

In your specific case, since you only need to post-process the resistor netlist format, it can be done by a fairly simple "sed" script.

Contents of the sed script (for instance, let me call it raw.sed) is as follows:

   s/\$\[//
   s/\]//
   s/\$//g

Excecute the following command under Linux:

   sed -f raw.sed YourNetlistFileName > raw.out

, where YourNetlistFileName is the name of original netlist file.
Check and see if the processed netlist in raw.out has the format you need.

Good luck!
 楼主| 发表于 2012-5-7 17:00:51 | 显示全部楼层
回复 12# fhchen2002
Thank you for your sharing.But i dont want to modify my netlist manully everytime.
do you have any other method?
Thanks
发表于 2012-5-8 12:48:41 | 显示全部楼层
回复 13# wapoca


This is not manual editing.
This automation is executed by (Unix/Linux) shell script.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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


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

GMT+8, 2024-12-22 16:33 , Processed in 0.015876 second(s), 6 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表