Google

Lubee's Blog--Digtial IC Fan's Home

WELCOME IC FANS' HOME! --ASIC/IC Design,Logical Design,STA,Digital IC Design,Synthesis, and so on.

2009-09-07

VIM -- Copy to a named buffer

VIM -- Copy to a named buffer

This is a tip that will work great with this previous tip to allow for copy & paste between files.

When yanking or deleting something, vim can to store a copy of it
to a named buffer. To utilize this, put the double " and a letter before your command.
Step one:

Yank current line into the named buffer a

"ayy

or Delete the current line into the named buffer b

"bdd

Step two:

Put the contents of the named buffer "a" below current line

"ap

Any of the 26 letters of the alphabet can be used yes as the named buffer

Labels:

2009-02-22

Dump fsdb file using modelsim

just follow the below steps,
1)Copy X:\Novas\Debussy\share\PLI\modelsim_pli\WINNT\novas.dll to X:\modelsim\win32\

2)Edit X;\modelsim\modelsim.ini and modify the following lines,
Veriuser = novas.dll

and add the following lines into your testbench,

initial
begin
$fsdbDumpfile("test.fsdb");
$fsdbDumpvars(0,"usbf_top_tb");
$fsdbDumpflush;
end

Labels: ,

2009-01-21

my .vimrc for verilog

set history=50
"set hidden ruler wildmenu
set softtabstop=4
set shiftwidth=4
set smartindent
"set cindent
set backspace=2
set visualbell
"set compatible
"set mouse=nv

set hlsearch
hi Normal ctermbg=DarkGrey ctermfg=White guifg=White guibg=grey20
highlight Search cterm=bold ctermfg=black ctermbg=gray gui=bold guifg=black
"highlight Search ctermfg=white ctermbg=black ctermbg=black guifg=white guibg=black

" speed up sh
set shell=/bin/csh\ -f
set nu

if has("terminfo")
set t_Co=8
set t_AB=[%?%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm
set t_AF=[%?%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm
else
set t_Co=16
set t_Sf=[3%dm
set t_Sb=[4%dm
endif

"if exists("$COLORTERM") "rxvt or xterm
" set t_Co=8 " for rxvt
"else
" set t_Co=16 " for xterm
"endif
set t_Co=8 " for rxvt

"syntax on

" Hide the mouse pointer while typing
set mousehide


"let did_install_default_menus = 1
"let did_install_syntax_menu = 1

let $VIMRUNTIME = "/cad/share/vim/"
let $VIMSCRIPT = $VIMRUNTIME . "/script"
syntax on

if file_readable(expand($VIMSCRIPT . "/macro.vim"))
source $VIMSCRIPT/macro.vim
endif

let myscriptsfile = $VIMSCRIPT . "/myscripts.vim"

"let CellLib = "tsmc"
"let CellLib = $VIMSCRIPT . "/s322.vim"

set cmdheight=1
set ruler
set sc
set gfn=-B\&H-LucidaTypewriter-Medium-R-Normal-Sans-20-220-75-75-M-150-ISO8859-1

"source /cad/share/vim/script/VerilogMacro.vim

2008-11-30

EDA Free Resources

1.来自kakuyou

http://www.icarus.com/eda/verilog/
开源的verilog 编译器,包含模拟器和基本逻辑综合模块。

http://www.geocities.com/SiliconValley/Campus/3216/GTKWave/gtkwave-win32.html
windows版的gtk-wave,一个图形波形察看工具

http://embedded.eecs.berkeley.edu/research.htm
大名鼎鼎的伯克里电子设计部,业界巨头们的工具大部分都是建立在这个部
发布的各种工具的基础上。


2.来自Tony Hsu's Technical View

原文:http://icguy.blogspot.com/2008/05/vmm.html

正当大家把注意力集中在新秀OVM身上、还在担心非开源的VMM如何应对挑战时,昨天Synopsys不声不响地推出了VMM方法学的标准库以及应用的源代码。类似于OVM的官方网站OVM World(http://www.ovmworld.org/),同时发布的还有VMM开源网站http://www.vmmcentral.org/,VMM完整的实现都可以在该网站下载。

Synopsys提供的代码包括以下:

-- VMM Standard Library
-- VMM Register Abstraction Layer application
-- VMM Reusable Environment Composition application
-- VMM Memory Allocation Manager application
-- VMM Hardware Abstraction Layer application
-- VMM Data Stream Scoreboard application
-- VMM Macro Library

这是个令人兴奋的消息!随着验证在IC设计中的重要性不断被重视,EDA们巨头们不断推出新的策略吸引潜在客户。从AVM开源到OVM开源再到 VMM的开源,我们看到的是一系列积极的举措,在不断地推进行业向前发展。不管怎么样,对客户而言,终归是好消息,你需要的是在选择使用哪种方法进行验证工作学时停顿片刻,花点时间仔细考虑下。

既然VMM都接招了,OVM赶快行动吧!至少,也该把OVM的User Guide发出来给支持者一些“新鲜”吧!^_^

3.来自phixcoco

原文:http://blog.csdn.net/phixcoco/archive/2006/08/13/1057134.aspx

SourceForge上搜到的关于Verilog/SystemVerilog/SystemC的开源项目

A: Verilog相关:

·Eclipse Verilog editor
http://sourceforge.net/projects/veditor
http://icarus.com/eda/verilog/
Eclipse Verilog editor is a plugin for the Eclipse IDE. It provides Verilog(IEEE-1364) and VHDL language specific code viewer, contents outline, code assist etc. It helps coding and debugging in hardware development based on Verilog or VHDL.

·Icarus Verilog
http://sourceforge.net/projects/iverilog
Icarus Verilog is an open source Verilog compiler that supports the IEEE-1364 Verilog HDL including IEEE1364-2001 plus extensions.

·Source Navigator for Verilog
http://sourceforge.net/projects/snverilog
http://sources.redhat.com/sourcenav
Source Navigator for Verilog is a verilog parser that allows Source Navigator to be used with the Verilog Hardware Deion Language.

·Icarus Verilog Test Suite
http://sourceforge.net/projects/ivtest
Provides a GPL'd test suite for verification of the verilog language. This project is affiliated with the Icarus Verilog compiler effort at icarus.com.

·Vtracer
http://sourceforge.net/projects/vtracer
VTracer is a Verilog Testbench developer aid. Contains well documented Verilog-Perl co-simulation environment (TCP sockets based), structural Verilog parser, demo Testbenches.

·VeriWell Verilog Simulator
http://sourceforge.net/projects/veriwell
VeriWell is a full Verilog simulator. It supports nearly all of the IEEE1364-1995 standard, as well as PLI 1.0. Yes, VeriWell *is* the same simulator that was sold by Wellspring Solutions in the mid-1990 and was included with the Thomas and Moorby book

·PVSim Verilog Simulator
http://sourceforge.net/projects/pvsim
PVSim is a Verilog Simulator for Mac OS X that uses AlphaX editor's Verilog mode and features a fast compile-simulate-display cycle.

·Verilog Construction Toolkit
http://sourceforge.net/projects/vct
The Verilog Construction Toolkit is a C++ library which provides the ability to read in, create and or modify verilog cell-based structural netlists.

·Verilog Netlist Viewer / Editor
http://sourceforge.net/projects/netedit
The purpose of this tool is creation of tcl/tk - based environment for convenient Verilog netlist viewing and editing. This tool will allow development of TCL s in order to make structural changes in verilog netlist.

·SystemC to Verilog RTL converter
http://sourceforge.net/projects/sysc2ver
sysc2ver - SystemC to Verilog RTL converter

·FPGA C Compiler
http://sourceforge.net/projects/fpgac
FpgaC compiles a subset of the C language to net lists which can be imported into an FPGA vendors tool chains. C provides an excellent alternative to VHDL/Verilog for algorithmic expression of FPGA reconfigurable computing tasks. More info on Home Page.

·vIDE
http://sourceforge.net/projects/vlogide
vIDE is a cross-platform tool for writing and simulating Verilog models. It provides user friendly project management and file editing, integrated simulation engine, waveform viewer, pre-compiled modules, and many other cool features.

·Covered
http://sourceforge.net/projects/covered
Covered is a Verilog code-coverage utility using VCD/LXT style dumpfiles and the design to generate line, toggle, combinational logic and FSM state/arc coverage reports. Covered also contains a built-in race condition checker and GUI report viewer.

·veri-indent
http://sourceforge.net/projects/veriindent
Veri-indent is a verilog source code Parser,Analyzer and Beautifier. (similar to c 'indent' , but more than that). Verilog source can be formatted and Symbol table, list of registers,wires,pli calls in source code can be extracted.

·Teal
http://sourceforge.net/projects/teal
TEAL - C++ multithreaded library to verfiy verilog designs

·Reed-Solomon Core Compiler
http://sourceforge.net/projects/rstk
RSTK is a C language program that generates Reed-Solomon HDL source code modules that can be compiled and synthesized using standard VHDL or Verilog compilers and synthesis tools.

·XSpiceHDL
http://sourceforge.net/projects/xspicehdl
XSpiceHDL, a mixed-mode XSpice-Verilog HDL co-simulation environment incorporating GUI schematic capture, modified XSpice3f5 based engine and TCP inter-process communications via CodeModel and VPI DLL, written in C++ using the wxWindows API.


B: SystemVerilog相关:(真是少得可怜)

·HDLObf
http://sourceforge.net/projects/hdlobf
HDLObf is intended to be a HDL Obfuscator and identifier name change utility. Primarily designed for Verilog/SystemVerilog. Support will be added for VHDL/SystemC in future.


C: SystemC相关:

·Open SystemC Initiative (OSCI)
http://sourceforge.net/projects/systemc
The Open SystemC Initiative (OSCI) is a collaborative effort to support and advance SystemC as a de facto standard for system-level design. SystemC is an interoperable, C++ SoC/IP modeling platform for fast system-level design and verification

·FERMAT SystemC Parser
http://sourceforge.net/projects/systemcxml
FERMAT's SystemC Parser using Doxygen and Xerces-C++ XML

·SCLive
http://sourceforge.net/projects/sclive
SCLive is a modular Linux-Live Distribution dedicated to the OSCI SystemC simulator and it's associated libraries. The distribution provides a fully working environement including a simulator kernel, wavefom viewer, IDE, tutorials and more.

·GreenSocs
http://sourceforge.net/projects/greensocs
http://www.greensocs.com
To develop SystemC infrustructure, basic IP, patches and add on library code for eventual standerdization. The GreenSocs project is made up of a number of contributions (sub projects). Please visit www.greensocs.com for more information.

www.opencores.org是IC行业有名的开源网站,有空了再到那里去转转,说不定会有不少收获!

4.来自sprhawk

原文:http://blog.chinaunix.net/u2/68344/article_85158.html
gEDA是一个Unix/Linux下作电路设计的软件集合--而非一个独立的程序
官方网站见:http://www.geda.seul.org/

取自:http://www.geda.seul.org/tools/index.html
gEDA/gaf软件包所带的工具 (gschem and friends):

* gschem :原理图设计

* gnetlist :网络表生成

* gattrib :属性编辑器

* symbols :符号库

* utils :工具集

* gsymcheck :符号检查

* examples : 例子

* docu……

Labels:

Tar usage summary

  .tar
  解包: tar xvf FileName.tar
  打包:tar cvf FileName.tar DirName
  (注:tar是打包,不是压缩!)
  ---------------------------------------------
  .gz
  解压1:gunzip FileName.gz
  解压2:gzip -d FileName.gz
  压缩:gzip FileName
  .tar.gz 和 .tgz
  解压:tar zxvf FileName.tar.gz
  压缩:tar zcvf FileName.tar.gz DirName
  ---------------------------------------------
  .bz2
  解压1:bzip2 -d FileName.bz2
  解压2:bunzip2 FileName.bz2
  压缩: bzip2 -z FileName
  .tar.bz2
  解压:tar jxvf FileName.tar.bz2
  压缩:tar jcvf FileName.tar.bz2 DirName
  ---------------------------------------------
  .bz
  解压1:bzip2 -d FileName.bz
  解压2:bunzip2 FileName.bz
  压缩:未知
  .tar.bz
  解压:tar jxvf FileName.tar.bz
  压缩:未知
  ---------------------------------------------
  .Z
  解压:uncompress FileName.Z
  压缩:compress FileName
  .tar.Z
  解压:tar Zxvf FileName.tar.Z
  压缩:tar Zcvf FileName.tar.Z DirName
  ---------------------------------------------
  .zip
  解压:unzip FileName.zip
  压缩:zip FileName.zip DirName
  ---------------------------------------------
  .rar
  解压:rar a FileName.rar
  压缩:r ar e FileName.rar
  
  rar请到:http://www.rarsoft.com/download.htm 下载!
  解压后请将rar_static拷贝到/usr/bin目录(其他由$PATH环境变量指定的目录也可以):
  [root@www2 tmp]# cp rar_static /usr/bin/rar
  ---------------------------------------------
  .lha
  解压:lha -e FileName.lha
  压缩:lha -a FileName.lha FileName
  
  lha请到:http://www.infor.kanazawa-it.ac.jp/~ishii/lhaunix/下载!
  >解压后请将lha拷贝到/usr/bin目录(其他由$PATH环境变量指定的目录也可以):
  [root@www2 tmp]# cp lha /usr/bin/
  ---------------------------------------------
  .rpm
  解包:rpm2cpio FileName.rpm | cpio -div
  ---------------------------------------------
  .deb
  解包:ar p FileName.deb data.tar.gz | tar zxf -
  ---------------------------------------------

Labels: