Can I expose input fixed point data type parameters to mask variables in Simulink?

조회 수: 1 (최근 30일)
I have experimented with Data Type Propagation in Simulink 2013b, and it can do some of what I want, but ideally I'd like to have mask variables that would know the incoming sign, word and fraction lengths of inputs to the mask, and then I can use those variables to modify the mask contents (e.g. change a value of a constant block in the mask). Is this possible? If not, are there any other tricks to know besides the Data Propagation block which can control output data type relative to input (e.g. add a constant number of bits and move the binary point)
Thanks, Dara
  댓글 수: 1
Dara Parsavand
Dara Parsavand 2014년 5월 23일
Another example is a bit reverse block. It's easy to make a hardcoded (in terms of input bitwidth) block that reverses bits, but if your mask doesn't know the input bitwidth, it seems hard to make a parmeterizable block.
(There may be other ways to do bit reverse, but I was just slicing into indiviual bits, and then concatenating in reverse order. Obviously no matter what way you do it, this block costs nothing in hardware).

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Author Block Masks에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by