1
25kviews
Design mealy machine to find out 2s complement of a binary number

Mumbai University > Computer Engineering > Sem 4 > Theoretical Computer Science

Marks: 10M

Year: May 2016

1 Answer
1
2.5kviews

For designing 2’s complement of a binary number we assume that input is read from LSB to MSB. We will keep the binary number as it is until we read first 1. Keep that 1 as it is then change remaining 1’s by 0’s and 0’s by 1’s.

For example, …

Create a free account to keep reading this post.

and 3 others joined a min ago.

Please log in to add an answer.