UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

Reply

problem with Mcode Block

Highlighted
Visitor
Posts: 8
Registered: ‎12-17-2017

problem with Mcode Block

[ Edited ]

Hello,

please how many times can I increase the Mcode bock in a system and how can I set it up? when I increase two:

the M-FUNCTION file is the same and I have this error displayed.

 

erreur.png

 

my first Mcode to this code:

function u = xlmax(Vramp, Vco, Memory)
  if Vco >= Vramp
    u = 1;
  elseif Vco < Vramp
    u = 0;
  else
    u = Memory;
  end

 

and the second to this code:

 

function s = xlmae(a, b)
  if a > b
    s = b;
  else
    s = a;
  end

 

 

 

thanks.

 

Moderator
Posts: 5,856
Registered: ‎08-01-2008

Re: problem with Mcode Block

matlab and Vivado version ! Please make sure to use compatible version of tools
https://www.xilinx.com/support/answers/55830.html
I have not reproduce this issue
Thanks and Regards
Balkrishan
--------------------------------------------------------------------------------------------
Please mark the post as an answer "Accept as solution" in case it helped resolve your query.
Give kudos in case a post in case it guided to the solution.