How to remove the error : 'bus output must be defined by bus object for hdl code generation'.
4 views (last 30 days)
Show older comments
priya agarwal
on 14 Jan 2014
Answered: Tim McBrayer
on 14 Jan 2014
I am trying to convert the following simulink model to vhdl. But this error is coming a lot of times.
As well as many other errors. error 2 : Matrices are not supported in this release. error 3 : Contain Ifaction port that is unsupported. error 4 : Action types are unsupported. Check out the hdl check report generated.
How to remove them?
To run simulink model first we need to run runnew.m and then the model. One png image is also needed but i am not able to upload it because of limitation to number of uploads.
2 Comments
Accepted Answer
Tim McBrayer
on 14 Jan 2014
Bus support in HDL Coder through R2013b does require bus objects to be defined for each bus. So, you will have to create bus objects in the base workspace or the model workspace to define any buses you want to use during HDL code generation. You will need to figure out your specific syntax issues. In R1014a bus support in HDL Coder will be significantly enhanced; one of the enhancements will be the lifting of the bus object requirement.
With respect to matrices: HDL Coder has never had support for matrices; you will need to figure out how to reduce matrix operations to vector operations.
If action subsystems are also not supported by HDL Coder. You can use enabled or triggered subsystems to implement the same logic instead.
0 Comments
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!