FOR FREE YEAR SOLVED

Question: What is the Mealy and Moore machine which generates 2’s complement?

 

Answer: 

 

2’s complement means 1’s complement and adds 1 at LSB. But here one shortcut method to generates 2’s complement.

 

 

2’s complement of 101000 is 011000

So, another example 10010100 here 2’s complement is 01101100

 

So, here we saw the input L  R (L = MSB and R = LSB)  LSB to MSB means R to L.