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!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor ajaymanyam
Visitor
354 Views
Registered: ‎03-13-2019

System Generator

This is the error i get when i try to run my matlab simulation

--------------------------------- Version Log ----------------------------------
Version Path
System Generator 2018.3 D:/Xilinx/Vivado/2018.3
Matlab 9.4.0.949201 (R2018a) Update 6 D:\Matlab
Vivado 2018.3 D:/Xilinx/Vivado/2018.3
--------------------------------------------------------------------------------
Summary of Errors:
Error 0001: Error("test1.m"): Syntax error: Encountered " <INTEGER_LI...
Block: 'lcfilter/MCode'
--------------------------------------------------------------------------------

Error 0001:

Reported by:
'lcfilter/MCode'

Details:
Error("test1.m"): Syntax error: Encountered " <INTEGER_LITERAL> "1
"" at line 4, column 6.
Error("test1.m"): Syntax error: Encountered " <INTEGER_LITERAL>
"1 "" at line 4, column 6.
Error occurred during "Block Configuration".

--------------------------------------------------------------------------------

0 Kudos
3 Replies
Moderator
Moderator
302 Views
Registered: ‎08-16-2018

Re: System Generator

@ajaymanyam 

Not all the matlab function can be implemented on the Hardware. Therefore MCode block does not accept all the functions of Matlab. 


For more details, please see the section "MCode" of UG958 (pg 215).


/ 7\7     Meher Krishna Patel, PhD
\ \        Senior Product Application Engineer, Xilinx
/ /        
\_\/\7   It is not so much that you are within the cosmos as that the cosmos is within you...
0 Kudos
Visitor ajaymanyam
Visitor
254 Views
Registered: ‎03-13-2019

Re: System Generator

The mcode file doesnt have any predefined matlab functions. Every line of the code is written using algorithms

0 Kudos
Moderator
Moderator
246 Views
Registered: ‎08-16-2018

Re: System Generator

Is it possible to share the code.


/ 7\7     Meher Krishna Patel, PhD
\ \        Senior Product Application Engineer, Xilinx
/ /        
\_\/\7   It is not so much that you are within the cosmos as that the cosmos is within you...
0 Kudos