zoukankan      html  css  js  c++  java
  • 基于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()




  • 相关阅读:
    Laravel 5.7 RCE (CVE-2019-9081)
    Laravel 5.8 RCE 分析
    CVE-2018-12613 的一些思考
    2019CISCN华南线下两道web复现
    Intellij idea导入项目时没有目录结构
    [BZOJ4907]柠檬
    [BZOJ3675]序列分割
    aes加解密
    java:基于redis实现分布式定时任务
    PBKDF2加密
  • 原文地址:https://www.cnblogs.com/libing64/p/2878724.html
Copyright © 2011-2022 走看看