Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Simulink Boolean to Integer Conversion

289 views
Skip to first unread message

Scott

unread,
Jun 18, 2009, 10:22:02 AM6/18/09
to
In Similink I've developed a digital logic model of a multi-input Sklansky/CSA binary 20-bit adder using gates (bitwise operators from Simulink "Logic and Bit Operations" library).

The datatype of the gates is boolean (single bit). I'd like to connect this adder to another model that uses integer datatypes.

How can I concatenate the 20 boolean outputs and convert into an integer?

How can I convert an integer into boolean bits to drive the 18 boolean inputs?

-Thanks in advance.

0 new messages