среда, 12 октября 2011 г.

Install eclipse and systemverilog sveditor without root

SVeditor is a free opensource systemverilog editor plugin for eclipse.

I prefer to install eclipse manually, i.e without package managers.
The key reason is eclipse is being released more often than my operating system, Fedora, and fedora guys cease providing fresh packages for distribution in a year after release. Moreover, some servers and pc in our company use aged centos. So updating eclipse and its components from time to time without root password is crucial.
  1. Download tar-gz eclipse release for appropriate arch(i686 or x86_64) at http://www.eclipse.org/downloads). I prefer  'Eclipse IDE for C/C++ Developers' package.
  2. untar it. by itself eclipse is already available to be started (java-1.6.0-openjdk package must be installed).
  3. download sveditor plugin named something like sveditor-0.6.1.ea08.jar.
    All downloads are available at http://sourceforge.net/projects/sveditor/files/sveditor/

    I found it useful to subscribe for fresh releases with RSS feed. Just follow this url to receive notification about new releases http://sourceforge.net/api/file/index/project-id/230781/mtime/desc/limit/20/rss

    By the way, sveditor's author is quite responsive to bug reports. It's possible to fire a bug anonymously at http://sourceforge.net/tracker/?group_id=230781&atid=1081015
  4. if you can't set up eclipse to use proxy the actual plugin installation is a bit tricky. So go eclipse->help->install_new_software.
    Hit Add... button, in 'Location' field point full path to download 'sveditor...jar' file. 'Name' field may be left empty.
    After hitting Ok following dialog appears:
    check the needed boxes, next, next, accept sveditor license, next, restart.

    PS. After installing this and other plugins it's possible to set read-only access and share eclipse via NFS so colleagues could skip the installation part and just use it.

Using eclipse for functional verification projects

I use eclipse for following features:
  1. highligthning, autocomplition, open declaration for
    • make
    • asm, c/c++,(systemc, systemc_verification sources)
    • systemverilog (and ovm,uvm,vmm) (with sveditor plugin)
    • python(with plugin)
  2. integration cvs & svn
  3. my hotkeys:
    • Ctrl+shift+R - open resource(read file) while typing its name. When project becomes huge (it usually does), it becomes unbearable to remember filesystem paths of all files. navigate->'open resource' is where eclipse beats simple editors like KDE kate.
    • F3 - open declaration
    • Ctrl+space - autocompletion 
    • Ctrl+D - delete line (yes, no more home,shift+end,delete)
    • Alt+up/down  - move line up/down ( yes, no more home, shift+end,ctrl+x,up,up,up,ctrl+v)
    • Alt+Shift+up/down - duplicate line
    • Ctrl+pageup/down - move to next tab 
    • Alt+left/right - jump to last edited place