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

1 Ansicht (letzte 30 Tage)
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 Kommentar
Dara Parsavand
Dara Parsavand am 23 Mai 2014
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).

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Author Block Masks finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by