Simulink Bitslice not working

1 回表示 (過去 30 日間)
Jacob Walsh
Jacob Walsh 2016 年 4 月 5 日
回答済み: Shuozhi Yang 2018 年 12 月 10 日
I am using simulink to create a serial adder using three universal registers. I keep getting the following errors: Function 'BITSLICEGET' is not defined for the first argument of class double.
Function 'HDL Operations/Bit Slice/bit_slice' (#60.47.89), line 4, column 5: "bitsliceget(cast_to_fi(u), lidx+1, ridx+1)" Launch diagnostic report. Component: MATLAB Function | Category: Coder error Errors occurred during parsing of MATLAB function 'HDL Operations/Bit Slice/bit_slice' Component: MATLAB Function | Category: Coder error Errors occurred during parsing of MATLAB function 'HDL Operations/Bit Slice/bit_slice' Component: Simulink | Category: Block error Any help would be great. Thanks

回答 (2 件)

Tim McBrayer
Tim McBrayer 2016 年 4 月 5 日
bitsliceget is supported for fixed point types only. What is the type of the data that you are supplying as input to the bit slice block?

Shuozhi Yang
Shuozhi Yang 2018 年 12 月 10 日
Any follow-up on this question?
I got the exact same error when I use the HDL coder. It seems cast_to_fi() is there to make sure that the input to bitsliceget() is an fixed point type.

カテゴリ

Help Center および File ExchangeCode Generation についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by