Dec
3
引用
First MathStar, now Ambric... WHAT NEXT?!
-- from PLDesignline
-- from PLDesignline
文章说,MathStar死在他的软件,而Ambric, 好好的Ambric正在向正确的道路发展,有望成为明日的好青年,却生不逢时碰到了经济不景气,爸妈拿不出钱买吃的,被活活饿死于VC之手。
了解详情请点击原文阅读。
Nov
24
[FPU种类]
MicroBlaze FPU - MB内置,单精度,加减乘除开方比较转换
V4 PPC APU_FPU - PPC APU接口,单精度,加减乘除开方比较转换
V5 PPC APU_FPU_VIRTEX5 - PPC APU接口,单/双精度,加减乘除开方移位绝对值比较转换
[问题]
1. 怎样使用FPU
2. C语言的标准函数库都是为双精度小数写的,用了sqrt()函数还是没有用到FPU
3. 怎么检查编译出来的结果有没有使用FPU?
4. 为什么我看到dump中使用了fsqrt但是也包含了的软件函数,整个函数大概有7K长?
5. 如果是加减乘除,需要用特别的函数吗?
MicroBlaze FPU - MB内置,单精度,加减乘除开方比较转换
V4 PPC APU_FPU - PPC APU接口,单精度,加减乘除开方比较转换
V5 PPC APU_FPU_VIRTEX5 - PPC APU接口,单/双精度,加减乘除开方移位绝对值比较转换
[问题]
1. 怎样使用FPU
2. C语言的标准函数库都是为双精度小数写的,用了sqrt()函数还是没有用到FPU
3. 怎么检查编译出来的结果有没有使用FPU?
4. 为什么我看到dump中使用了fsqrt但是也包含了
5. 如果是加减乘除,需要用特别的函数吗?
Nov
11
[问题] 当一个大程序中,有一些函数从来没有被调用过,用GCC编译仍然会把他们保留在最终的输出elf中。怎样去除这些没有被调用过的函数呢?
[Question] Sometimes some functions are never used in one program, but gcc will retain them in the produced elf file even with -O2 option. How to remove these dead code?
[GCC Doc]
[Question] Sometimes some functions are never used in one program, but gcc will retain them in the produced elf file even with -O2 option. How to remove these dead code?
[GCC Doc]
引用
In order to do this, it has to work with objects compiled with the following options: -ffunction-sections -fdata-sections. These options are usable with C and Ada files. They will place respectively each function or data in a separate section in the resulting object file.
Once the objects and static libraries are created with these options, the linker can perform the dead code elimination. You can do this by setting the -Wl,--gc-sections option to gcc command or in the -largs section of gnatmake. This will perform a garbage collection of code and data never referenced.
Once the objects and static libraries are created with these options, the linker can perform the dead code elimination. You can do this by setting the -Wl,--gc-sections option to gcc command or in the -largs section of gnatmake. This will perform a garbage collection of code and data never referenced.
Nov
10
本来想取的标题是How cool it is to be a professor in US universities。
不过回头想想,这样Cool的事情,其实在哪里都能做,只是做不做,做了又是否花时间来与全世界分享而已。
有兴趣的TX们看看吧:
一个来自美国北卡罗莱纳大学RCS实验室的Wiki
主要Project:
# RCC: Reconfigurable Computing Cluster
# FSC: FPGA Session Control - Remote FPGA Laboratory
# RTR-JVM: Run Time Reconfigura - Java Virtual Machine
Tutorials:
# Linux 2.6 on ML-410
# Partial Reconfiguration Tutorial
# Custom Hardware Core Tutorials
不过回头想想,这样Cool的事情,其实在哪里都能做,只是做不做,做了又是否花时间来与全世界分享而已。
有兴趣的TX们看看吧:
一个来自美国北卡罗莱纳大学RCS实验室的Wiki
主要Project:
# RCC: Reconfigurable Computing Cluster
# FSC: FPGA Session Control - Remote FPGA Laboratory
# RTR-JVM: Run Time Reconfigura - Java Virtual Machine
Tutorials:
# Linux 2.6 on ML-410
# Partial Reconfiguration Tutorial
# Custom Hardware Core Tutorials
Oct
20
设计中经常由于大小端问题等等需要把一个Bus里所有比特的位置倒置一下,使原来bit0, bit1...bitN的顺序改为bitN, bitN-1, bit0.
以下是从xps_spi_2.00.b中截取的一段代码,用于解决这个问题。
spi_module.vhd , Line 541
以下是从xps_spi_2.00.b中截取的一段代码,用于解决这个问题。
spi_module.vhd , Line 541
if (LSB_first = '1') then
for i in 0 to C_NUM_TRANSFER_BITS-1 loop
Receive_Data(i) <= Shift_Reg(C_NUM_TRANSFER_BITS-1-i);
end loop;
else
Receive_Data <= Shift_Reg;
end if;
for i in 0 to C_NUM_TRANSFER_BITS-1 loop
Receive_Data(i) <= Shift_Reg(C_NUM_TRANSFER_BITS-1-i);
end loop;
else
Receive_Data <= Shift_Reg;
end if;









