改了模板,欢迎留下您的的意见
Oct
9
问题:在EDK中为某个Project设置的Optimize Level都只针对这个Project下的C,而Library都默认以-O2编译。这对调试的情况有一些不便。怎样设置让LibGen以-O0编译库?
解决:Platform Settings --> Software Platform --> Microblaze_0 --> extra compiler flags = -g -O0 ".
解决:Platform Settings --> Software Platform --> Microblaze_0 --> extra compiler flags = -g -O0 ".
Oct
8
http://www.escet.urjc.es/~phuerta/SMP_project.htm
引用
The system can be used as an example of how to build SMP systems on
FPGA and how to write applications for it.
In the software side, a modified version of xilkernel I have developed
is used to write multi-threaded applications that run on the SMP
system.
FPGA and how to write applications for it.
In the software side, a modified version of xilkernel I have developed
is used to write multi-threaded applications that run on the SMP
system.
Oct
7
先来看Xilinx的两个Answer Record:
AR #31256 - 10.1 EDK - How to add a user software library in a project?
AR #29926 - 10.1 EDK - How can I create a user library in SDK?
一个说怎么用,一个说怎么做,看似很好,但是那个说怎么做的基本上等于没说。
于是找到另一个教程:Creating a shared and static library with the gnu compiler (gcc)
于是在SDK里实现的基本过程就变成:
1. 在SDK中首先需要把原来的程序调试成功,能得到正确的elf文件
2. 把SDK_projects\\Debug 目录中的.o文件都copy到另一个文件夹
3. 打开edk shell,用命令mb-ar -rcs libuser.a xx.o xx.o xx.o 把所有的.o文件集合为.a文件
4. 删除原来的.c文件
5. 在SDK的project properities中设置library的名字=user,并添加路径
6. 重新编译工程
[更多资料]
http://www.dwheeler.com/program-library/Program-Li...
AR #31256 - 10.1 EDK - How to add a user software library in a project?
AR #29926 - 10.1 EDK - How can I create a user library in SDK?
一个说怎么用,一个说怎么做,看似很好,但是那个说怎么做的基本上等于没说。
于是找到另一个教程:Creating a shared and static library with the gnu compiler (gcc)
于是在SDK里实现的基本过程就变成:
1. 在SDK中首先需要把原来的程序调试成功,能得到正确的elf文件
2. 把SDK_projects\
3. 打开edk shell,用命令mb-ar -rcs libuser.a xx.o xx.o xx.o 把所有的.o文件集合为.a文件
4. 删除原来的.c文件
5. 在SDK的project properities中设置library的名字=user,并添加路径
6. 重新编译工程
[更多资料]
http://www.dwheeler.com/program-library/Program-Li...
Oct
7
[2008.3.13]
XPS --> Debug --> Debug Configuration可以很方便地添加ChipScope的各种Core:ILA, IBA, VIO,工具会自动连线。值得注意的是VIO都能自动填上,这在ISE里面是需要手动例化的。
1. IBA 用来观察总线上的信号
2. ILA 可以观察各个Core的端口信号,但是看不到Core内部信号。
如果要看内部信号,Workaround是
a.在ISE中添加ILA。需要保证有可用的BSCAN资源,不过一般来说设计中没有自己例话BSCAN的话是不会不够用的。这种方法比b方法方便一些。
b.预留好足够的Trigger/Data port,布局布线完成后在FPGA Editor中通过Tools --> ILA 工具修改。这样可以不用ISE(虽然现在import EDK to ISE越来越简单了),但是这样做的潜在问题是ChipScope连线的Timing有可能不满足。
一般来说推荐用a方法。
3. ILA 的属性:
默认情况下Trigger as Data是选上的,此时只需要连接Trig0 Trig1...等端口,不需要连接Data Port。如果取消选择,则需要手动分别选择Trig和Data。
[Update 2008.10.7]
4. 另外一种情况是,如果之需要对某一个Core做观察,那么可以把ChipScope ILA单独加到这个Core中。所使用的工具是ChipScope Inserter。
流程是:EDK -> Generate Netlists, 在implementation目录中找到对应的ngc文件,添加到chipscope inserter,设置好trigger属性后生成对应的ngo文件。把ngc文件改名,把ngo再改成ngc。然后在EDK中运行Hardware --> Generate Bitstream。
XPS --> Debug --> Debug Configuration可以很方便地添加ChipScope的各种Core:ILA, IBA, VIO,工具会自动连线。值得注意的是VIO都能自动填上,这在ISE里面是需要手动例化的。
1. IBA 用来观察总线上的信号
2. ILA 可以观察各个Core的端口信号,但是看不到Core内部信号。
如果要看内部信号,Workaround是
a.在ISE中添加ILA。需要保证有可用的BSCAN资源,不过一般来说设计中没有自己例话BSCAN的话是不会不够用的。这种方法比b方法方便一些。
b.预留好足够的Trigger/Data port,布局布线完成后在FPGA Editor中通过Tools --> ILA 工具修改。这样可以不用ISE(虽然现在import EDK to ISE越来越简单了),但是这样做的潜在问题是ChipScope连线的Timing有可能不满足。
一般来说推荐用a方法。
3. ILA 的属性:
默认情况下Trigger as Data是选上的,此时只需要连接Trig0 Trig1...等端口,不需要连接Data Port。如果取消选择,则需要手动分别选择Trig和Data。
[Update 2008.10.7]
4. 另外一种情况是,如果之需要对某一个Core做观察,那么可以把ChipScope ILA单独加到这个Core中。所使用的工具是ChipScope Inserter。
流程是:EDK -> Generate Netlists, 在implementation目录中找到对应的ngc文件,添加到chipscope inserter,设置好trigger属性后生成对应的ngo文件。把ngc文件改名,把ngo再改成ngc。然后在EDK中运行Hardware --> Generate Bitstream。
Sep
23
data2mem有一份非常详细的文档d2m.pdf在ISE安装目录的doc目录中,但是由于太详细了以至于一眼不能找到所需要的内容。
于是在此罗列各种用法:
1. 更新bit文件中BRAM的内容
data2mem -bm my.bmm -bd code.elf -bt my.bit -o b new.bit
注意BMM文件中必须有LOC或者PLACED定义的位置信息
2. dump bit content of memory
data2mem -bm my.bmm -bt my.bit -d
3. dump elf file into verilog, vhdl, ucf file
data2mem -bm my.bmm -bd my.elf -o v my.v
data2mem -bm my.bmm -bd my.elf -o h my.vhd
data2mem -bm my.bmm -bd my.elf -o u my.ucf
4. dump elf file into mem file
data2mem -bm my.bmm -bd my.elf -bx my // my is a directory which exists before running this command
[更多资料]
http://web/~ywu/data2mem_example.zip
于是在此罗列各种用法:
1. 更新bit文件中BRAM的内容
data2mem -bm my.bmm -bd code.elf -bt my.bit -o b new.bit
注意BMM文件中必须有LOC或者PLACED定义的位置信息
2. dump bit content of memory
data2mem -bm my.bmm -bt my.bit -d
3. dump elf file into verilog, vhdl, ucf file
data2mem -bm my.bmm -bd my.elf -o v my.v
data2mem -bm my.bmm -bd my.elf -o h my.vhd
data2mem -bm my.bmm -bd my.elf -o u my.ucf
4. dump elf file into mem file
data2mem -bm my.bmm -bd my.elf -bx my // my is a directory which exists before running this command
[更多资料]
http://web/~ywu/data2mem_example.zip






