Specifying implementations of code for code generation from a model
First Claim
Patent Images
1. In a computing system, a computer-implemented method comprising:
- with the computing system;
inserting a plurality of elements into the model;
specifying a scope for at least a subset of the plurality of elements;
identifying a first implementation of code that corresponds to the first portion of a model, the first portion of the model being a subset of the plurality of elements that are encompassed by the scope;
identifying a second implementation of code that corresponds to the first portion of the model;
specifying a performance characteristic for an implementation of code that corresponds to the first portion of the model, the performance characteristic being one of or a weighted combination of power reduction, area reduction, memory usage reduction, execution time reduction, stack usage reduction or conformance with a coding standard;
selecting one of the first implementation or the second implementation based on the specified performance characteristic; and
generating code for the model, wherein a section of code that corresponds to the first portion of the model employs the selected one of the first or second implementations of code.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the present invention allow user to generate a model in a modeling environment and to generate code from the model using various implementations of code for portions of the model. The implementations of code can be supplied by the modeling environment or supplied by a user. Embodiments further allow a user to specify a scope in a model such that portions of the model contained in the scope use a specific implementation or implementations of code.
36 Citations
21 Claims
-
1. In a computing system, a computer-implemented method comprising:
with the computing system; inserting a plurality of elements into the model; specifying a scope for at least a subset of the plurality of elements; identifying a first implementation of code that corresponds to the first portion of a model, the first portion of the model being a subset of the plurality of elements that are encompassed by the scope; identifying a second implementation of code that corresponds to the first portion of the model; specifying a performance characteristic for an implementation of code that corresponds to the first portion of the model, the performance characteristic being one of or a weighted combination of power reduction, area reduction, memory usage reduction, execution time reduction, stack usage reduction or conformance with a coding standard; selecting one of the first implementation or the second implementation based on the specified performance characteristic; and generating code for the model, wherein a section of code that corresponds to the first portion of the model employs the selected one of the first or second implementations of code. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
14. A non-transitory medium for use on a computing device, the medium holding instructions executable using the computing device, the instructions for performing the steps of:
-
identifying a first implementation of code that corresponds to a first portion of a model; identifying a second implementation of code that corresponds to the first portion of the model; specifying a performance characteristic for an implementation of code that corresponds to the first portion of the model, the performance characteristic being one of or a weighted combination of power reduction, area reduction, memory usage reduction, execution time reduction, stack usage reduction or conformance with coding standards; selecting the first implementation or the second implementation based on the specified performance characteristic; and generating code for the model, wherein a section of code that corresponds to the first portion of the model employs the selected one of the first or second implementations of code; identifying a targeted device that is capable of implementing the generated code; and identifying a selection of implementations of code that are capable of being used on the targeted device, the selection comprising the first and second implementations. - View Dependent Claims (15, 16, 17)
-
-
18. In a computing device, a computer-implemented method comprising:
with the computing device; inserting a plurality of elements into the model; specifying a scope for at least a subset of the plurality of elements; identifying a first implementation of code that corresponds to the first portion of the model, the first portion of the model being a subset of the plurality of elements that are encompassed by the scope; identifying a second implementation of code that corresponds to the first portion of the model; selecting, programmatically, one of the first or second implementations of code based on an identified constraint; and generating code for the model, wherein a section of code that corresponds to the first portion of the model employs one of the automatically selected first or second implementations of code. - View Dependent Claims (19, 20)
-
21. A non-transitory medium for use on a computing device, the medium holding instructions executable using the computing device, the instructions for:
-
inserting a plurality of elements into the model; specifying a scope for at least a subset of the plurality of elements; identifying a first implementation of code that corresponds to the first portion of the model, the first portion of the model being a subset of the plurality of elements that are encompassed by the scope; identifying a second implementation of code that corresponds to the first portion of the model; selecting, programmatically, one of the first or second implementations of code based on an identified constraint; and generating code for the model, wherein a section of code that corresponds to the first portion of the model employs one of the automatically selected first or second implementations of code.
-
Specification