HDL Unit Delay Code Generation

10 Ansichten (letzte 30 Tage)
Conrad
Conrad am 10 Apr. 2014
Beantwortet: Tim McBrayer am 17 Apr. 2014
Hello, I have been trying to use the HDL coder to generate code from an instantiated Unit delay Enabled Resettable External IC.
The error message that I received is the following:
ErrorLogic Operator blocks output datatype must be single-bit (boolean or ufix1).
I have checked that the inputs are Boolean. However, still getting the error message.
I have attached the file for your review.
Thanks.

Akzeptierte Antwort

Tim McBrayer
Tim McBrayer am 10 Apr. 2014
You don't mention your software version. The supplied model works cleanly in R2014a, generating the correct HDL for the model.
  1 Kommentar
Conrad
Conrad am 10 Apr. 2014
I apologize. Using version R013B. Does it work with this version?
Thanks for quick response.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Tim McBrayer
Tim McBrayer am 17 Apr. 2014
No, the Unit Delay Enabled Resettable External IC block is not supported in R2013b. If you run the command hdllib, it will generate a library with all blocks in your Simulink install that are supported for HDL code generation. In R2013b, this library does not contain this block. R2013b does contain support for the Unit Delay Enabled Resettable block, which allows a static initial condition to be configured on the block mask.
The block is not officially supported in R2014a, either--it is not part of the library generated by hdllib. But, it does generate code cleanly.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by