打印

基于FPGA的图像处理(四)--Matlab Language supported by Mcode

[复制链接]
1189|2
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
LMQQ|  楼主 | 2013-1-22 21:30 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

在进行FPGA图像处理时,如果使用System Generator构建模型,有时有些算法不能实现时可以考虑Mcode来实现,但是其实在SysGen中Mcode是很弱的,因此需要了解它的能力有多大,才能更好的操作。


The MCode block supports the following MATLAB language constructs:

• Assignment statements
• Simple and compound if/else/elseif end statements
• switch statements
• Arithmetic expressions involving only addition and subtraction
• Addition
• Subtraction
• Multiplication

• Division by a power of two


2 Relational operators:


3 Logical operators:


4 MATLAB functions

Type conversion. The only supported data type is xfix, the Xilinx fixed-point type.
The xfix() type conversion function is used to convert to this type. The conversion
is done implicitly for integers but must be done explicitly for floating point constants.

All values must be scalar; arrays are not supported.


• Shift functions: xl_lsh() and xl_rsh()
• Slice function: xl_slice()
• Concatenate function: xl_concat()
• Reinterpret function: xl_force()
• Internal state variables: xl_state()



相关帖子

沙发
GoldSunMonkey| | 2013-1-22 21:46 | 只看该作者
真的很不错啊

使用特权

评论回复
板凳
feihong777| | 2013-1-23 22:28 | 只看该作者
没有图片啊,猴哥

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

153

主题

401

帖子

1

粉丝