What could be causing the failed assertion T::isa((const CG::Type*)aType) in HDL coder?

2 views (last 30 days)
failed assertion in b:\matlab\src\cg_ir\export\include\cg_ir\type\type.hpp at line 420: T::isa((const CG::Type*)aType)
Trying to use the HDL coder in Simulink inside R2015a

Accepted Answer

Luca
Luca on 25 Apr 2015
I figured it out: for example this was causing the coder to fail. pixel0-pixel7 were defined as booleans. Which the coder didn't like. Casting them to uint8 worked LBPPixel= uint8(... pixel7 * 2^7 + pixel6 * 2^6 + ... pixel5 * 2^5 + pixel4 * 2^4 + ... pixel3 * 2^3 + pixel2 * 2^2 + ... pixel1 * 2 + pixel0);

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!