Are there Simulink guidelines for choosing ufix1 vs. boolean?
Show older comments
In the past I've tried making all my 1 bit signals in my Simulink models ufix1 or all of them boolean and neither option seemed to work perfectly. I haven't yet found guidelines from MathWorks for choosing the best type in a particular case - are there any? Or perhaps you really can make them all one type or the other, but I did it wrong.
From my perspective, I don't see the need for a ufix1 data type - does anybody know the reason?
4 Comments
Robert Anderson
on 8 Dec 2016
Hi Dara, thanks for taking the time to contribute to MATLAB Central. Generally speaking, if the signal is used for only control logic, then Boolean may be preferred. If the signal is used for driving arithmetic blocks, then ufix1 is preferred. Can you elaborate on what kind of issues you ran into with either MATLAB function blocks, or with Simulink blocks? Best Regards, Robert Anderson
Dara Parsavand
on 5 Jan 2017
Kiran Kintali
on 17 Mar 2017
I have entered an enhancement request to remove this restriction on enable port. We hope to remove this limitation soon.
Dara Parsavand
on 16 Feb 2018
Edited: Dara Parsavand
on 16 Feb 2018
Accepted Answer
More Answers (0)
Categories
Find more on HDL Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!