cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
gabiandpaulain7526
Participant
Participant
1,140 Views
Registered: ‎12-17-2017

problem with Mcode Block

Jump to solution

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.

 

0 Kudos
1 Solution

Accepted Solutions
balkris
Xilinx Employee
Xilinx Employee
1,248 Views
Registered: ‎08-01-2008
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.

View solution in original post

0 Kudos
1 Reply
balkris
Xilinx Employee
Xilinx Employee
1,249 Views
Registered: ‎08-01-2008
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.

View solution in original post

0 Kudos