How to pass fixed-point conversion for some specific block?

2 ビュー (過去 30 日間)
Jury
Jury 2012 年 12 月 11 日
Hi!
I have a Simulink model with standart block Abs and cos (trigonometric function). I'm trying to convert my scheme to fixed-point. I got the following error with Abs and cos block:
--> Input port and output port of 'rx12/Subsystem128/Abs ' must be of type 'single' or 'double' when complex --> An error occurred while propagating numeric type complex from 'rx12/Subsystem128/IFFT13 ', output port 1.
IFFT13 block is connected directly to Abs without type conversion. When I insert conversion to double before Abs, Fixed-Point Advisor doens't return error, but notes that I should convert one float-point data type to fixed-point.
The same situation I have with cos block, connected to the output of Delay block.
How I can do it?
  2 件のコメント
Kaustubha Govind
Kaustubha Govind 2012 年 12 月 26 日
You should probably chase the signal up to its original source and make sure that it produces a fixed-point type?
Walter Roberson
Walter Roberson 2012 年 12 月 26 日
Is the message not effectively saying that you cannot use Abs on a complex fixed-point signal? If so it might be necessary to put in the blocks needed to calculate abs, breaking up the parts, squaring, etc.,

サインインしてコメントする。

回答 (1 件)

Jury
Jury 2013 年 1 月 1 日
I've replaced these block with block from IQMath library, which are supporting fixed-point. I got next problem - there isn't HDL realisation these new blocks.

カテゴリ

Help Center および File ExchangeSignal Attributes and Indexing についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by