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

       在进行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()




  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值