R2020b Embedded Coder uses De Morgan's laws for NAND and NOR blocks
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Martin Hlavacek
am 1 Feb. 2021
Kommentiert: Martin Hlavacek
am 8 Feb. 2021
I noticed R2020b Embedded Coder uses De Morgan's laws when generating C-code for NAND and NOR Logical Operator blocks.
Is there an option please to switch the new behavior off?
Example of older Matlabs C-code: NAND = !(In1 && In2); NOR = !(In3 || In4);
Example of R2020b EC C-code: NAND = ((!In1) || (!In2)); NOR = ((!In3) && (!In4));
0 Kommentare
Akzeptierte Antwort
Shubham Rawat
am 6 Feb. 2021
Hi Martin,
In my information we cannot change this behaviour to old version.
Even if we use basic AND and OR gates and create that logic with your own. It is showing the same results, i.e. after applying De Morgans laws.
So you may change your working according to it, OR you may use older versions of Simulink.
Hope this Helps!
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Deployment, Integration, and Supported Hardware finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!