Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/freehos1/public_html/projectus/core/open_close_dbase_connection.php on line 0

Deprecated: Function split() is deprecated in /home/freehos1/public_html/projectus/ASIC-implementation-of-square-root-processor/index.php(0) : eval()'d code on line 22

Deprecated: Function split() is deprecated in /home/freehos1/public_html/projectus/ASIC-implementation-of-square-root-processor/index.php(0) : eval()'d code on line 35

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/freehos1/public_html/projectus/scripts/get_ad_type_position.php on line 0

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/freehos1/public_html/projectus/scripts/load_ads.php on line 0

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/freehos1/public_html/projectus/scripts/sponsor_found.php on line 0

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/freehos1/public_html/projectus/scripts/load_links.php on line 0

Deprecated: Function split() is deprecated in /home/freehos1/public_html/projectus/ASIC-implementation-of-square-root-processor/index.php(0) : eval()'d code on line 161

Deprecated: Function split() is deprecated in /home/freehos1/public_html/projectus/ASIC-implementation-of-square-root-processor/index.php(0) : eval()'d code on line 164

Deprecated: Function split() is deprecated in /home/freehos1/public_html/projectus/ASIC-implementation-of-square-root-processor/index.php(0) : eval()'d code on line 167
a subtractor based on nikhilam sutra
projectus.freehost7.com:UG and PG level projects,mini projects and many more here ...



 

 

 

Subtractor based on Nikhilam Sutra:  

Mathematical modeling of “Nikhilam” sutra for Binary Subtraction

        The Subtraction method based on Vedic mathematics can be determined by “All from Nine and Last from Ten” sutra. This rule is applicable for decimal number system only. This rule has been little bit modified to apply in Binary arithmetic. The sutra in case of Binary mathematics can be defined as “All from one and Last from Two”. The interpretations for both the rules are same. To elucidate the rule mathematically consider the number  is subtracted from the number . So it can be written as

                                                                                               (11)

                                                            (12)

                                            (13)

                                            (14)

                                                       (15)

From equation (15) it is clear that the LSB of Y, y0 is subtracted from 2 and the remaining bits of Y that is yi (i=1 to n-1) are needed to be complemented. The output is added with X to achieve the required result.

The last term that is 2n is used to eliminate the overflow generated by the carry after the addition operation. After the elimination operation is executed if the nth position still exhibits high value then it means that the result is negative.

Fig. 4: 8 bit architecture of Binary Subtractor based on Nikhilam Sutra

 

        From the architecture shown in Fig.-4 the first stage subtraction and addition is to determine the 2’s complement of Y and the second stage addition is nothing but the subtraction using 2’s complement methodology. The first stage 2 bit subtractor is to determine  and the MSB of the result is fed to the carry input of the first stage 7 bit parallel adder.