Source insight 官方verilog语言插件

Verilog HDL语言功能描述:
1、支持input、output、inout端口定义及建立symbol索引,单行最多支持到10个symbol;
2、支持wire、reg变量定义及建立symbol索引,单行最多支持到10个symbol;
3、支持module、task、function模块定义及建立symbol索引;
4、支持模块例化定义及建立symbol索引; Continue reading

用Emacs写Verilog

介绍verilog-mode的一个ppt:http://www.veripool.org/papers/verilog-mode_veritedium_20090925.pdf。它的官方网站:http://www.veripool.org/wiki/verilog-mode(应该是吧,没仔细考证)

电脑跑仿真,还得挺长时间的,顺便把用emacs写verilog的方便之处大概总结一下吧,我只能说:太方便了! Continue reading

Developer’s guide for NetFPGA 2.1

In our project we used the NetFPGA 2.1 package, and found from README of the home directory, here is a developer’s guide for how you add the new design.

+————————————————————————
| Author: Jad Naous <first initial last name at stanford period edu>
| Description: Quick intro to NetFPGA
+————————————————————————

CONTENTS:
1.0 Tree structure
2.0 Getting started with design
2.1 Using modules
2.2 Adding your own code
2.3 Overriding library code
2.4 Coregen
3.0 Environment setup
4.0 Simulation
5.0 Implementation
6.0 Running the hardware
6.1 Kernel Driver
6.2 Download
7.0 Contacts

Continue reading

ChipScope Pro工具简介

网络上一个集合很多chipscope学习资源的网站 http://www.tutorgig.net/books.jsp?keywords=chipscope
Chipscope是XILINX推出的一款在线调试软件,价格便宜,通过它完全可以脱离传统逻辑分析仪(太贵)来调时序,观察FPGA内部的任何信号,触发条件、数据宽度和深度等的设置也非常方便,但是肯定也存在不足,比如速度和数据量方面。Chipscope本身是一个逻辑分析仪,主要用于在上板测试过程中采集并观察芯片内部信号,以便于调试。
它的原理是,在你综合完的网表里插入用于采集数据的core(包括ILA和ICON),插入的方式可以用core inserter,也可以用core generator,只不过后者需要在源代码中实例化。用core inserter更为快捷,基本上就是选择你要观察的信号以及触发源、时钟等,然后运行之后会自动生成一个新的网表文件,再用这个网表在ISE里面进行布局布线,生成下载文件,通过JTAG方式下载到芯片里运行。在芯片运行的过程中,如果你选择的触发源发生跳变,或满足触发条件时,芯片里的core会将你要观察的信号采集并存储在芯片内的RAM(也可以是FF)中,然后通过JTAG口将采集到的信号上载到PC,最后在PC的chipscope analyzer的界面中以波形的方式显示出来,因此你就能看到芯片里的信号波形。
我们平时都是使用Chipscope的 core inserter 方式来往我们的工程里面植入Chipscope核。凡事都是利弊相生的,XILINX的Chipscope core inserter工具帮你便捷地把core植入到你的工程里面,那么存在一定的弊端,那就是编译时间被延长得很长,而且每次编译过程中,都会根据你的cdc工程文件重新生成一次ICON、ILA内核网表,再重新编译整个工程,那么编译时间就不可避免地被延长了。
所以,如果要采集到你所要的信号波形,首先是你的触发条件被满足。chipscope不会去改变你的原始设计中的信号,只对他们作采集。
总结来说,chipscope是利用植入FPGA的两个core: ILA 和 ICON,利用JTAG数据线传回数据的方式来观察、调试设计的。

1.ChipScope Pro简介
ChipScope Pro可以分析任何内部FPGA信号,包括嵌入式处理器总线;在设计采集或综合之后,插入小型的、可配置的软件核,将引脚影响降至最低;在板上以达到或接 近目标工程运行的速度验证FPGA设计;利用FPGA的可重编程性能,可以在几分钟或几小时内确定设计问题并修改设计;内置的软件逻辑分析器可以用来识别 设计问题并进行调试,包括高级触发、过滤和显示选项,无需重新综合即可改变探针指向;可利用远程调试(从办公室到实验室,或在全球范围内)通过互联网连接 进行调试;此外还包括Agilent科技推出的、用于实现功能强大的验证功能的逻辑分析器可选配件,可以探测包括从FPGA内部到板上任何地方的交叉互联 信号。其典型的工作模式如图5-1所示。 Continue reading

How to install emacs 24.3 in CentOS 5.5

# su -
# yum install gcc make ncurses-devel
# yum install giflib-devel libjpeg-devel libtiff-devel
# cd /usr/local/src
# wget http://ftp.gnu.org/pub/gnu/emacs/emacs-24.3.tar.gz
# tar xzvf emacs-24.3.tar.gz
# cd emacs-24.3
# ./configure --without-x --without-selinux
# make
# make install
# which emacs
/usr/local/bin/emacs
# emacs --version
GNU Emacs 24.3.1

for more chipscope references:
http://batsov.com/articles/2011/11/30/the-ultimate-collection-of-emacs-resources/

how to fix wireless connection with CentOS5.5 on Thinkpad X61S laptop

The first step you have to do is download and install iwl4965 firmware for the intel 4965AGN wireless driver.

http://wiki.centos.org/HowTos/Laptops/Wireless#head-97ffecc675e60b690e5649c6ccef13cc34184187

Then you have to enable the NetworkManager and its Service.

http://wiki.centos.org/HowTos/Laptops/NetworkManager

If everything works fine, you will find an icon on the right top side of the screen for you to find a list of wifi connection point.