Patent ID: 9075630
Filing Date: 2015-07-07
Classification: G06F

Abstract:
1. A method performed by an electronic device, the method comprising: identifying, by the electronic device, a fixed-point operation in a first representation, determining, by the electronic device, a fixed-point typing rule based on the first data type of the first operand and the second data type of the second operand; associating, by the electronic device, the fixed-point typing rule as an attribute of a portion of a graphical model; determining, by the electronic device and at compile time, that the first data type of the first operand and the second data type of the second operand are known; determining, by the electronic device, a result data type of an output of the fixed-point operation based on the fixed-point typing rule, the first data type of the first operand, and the second data type of the second operand; generating, by the electronic device and for the graphical model, a second representation of the fixed-point operation based on determining the result data type; evaluating, by the electronic device and during execution, the fixed-point operation based on the second representation; and generating, by the electronic device and based on evaluating the second representation, the output of the fixed-point operation having the result data type.