I am wondering if there is any way to compare if a Fixed Point data type is equal to another data type that could be equivalent. For example:
fixdt(0,16,1,0), fixdt(1,16,0.125,0)
are actually equivalent to
uint16, fixdt(1,16,3)
respectively.
Sometimes, for example, we can found some ports which are defined as fixdt when actually it should be defined as uint (when this happens, Matlab changes the compiled data type automatically). We would like to capture those discrepancies in order to show a warning, but at the same time we would like to know exactly if the data types are equivalent.
Best Answer