Home Verilog Digital Design Digital Basics Python RF Basics

Legal Disclaimer

Chip Designing for ASIC/ FPGA Design engineers and Students
FULLCHIPDESIGN
Digital-logic Design...  Dream for many students… start learning front-end…
Custom Search

Feedback ? Send it to admin@fullchipdesign.com or join me at fullchip@gmail.com

Digital Basics Binary Numbers 1s_complement 2s_complement Binary Subtraction Binary Sub. Ex's Sign_magnitude SignM EX Gray Coding BCD coding Digital gates NAND NOR & XNOR Theorems Boolean Functions BFunc Examples Minterm Maxterm Sum of Minterms Prdt of Maxterms 2 var K-map 3 var K-map 4 var K-map 5 var K-map Prime Implicant PI example K-map Ex's KMap minimization 2 var EX

Legal Disclaimer

Topics @TYH :- 4G LTE Tutorial, GVIM editor, Smart-Phone, Cloud Computing
Previous Next
Verilog Tutorial.
Digital Basics Tutorial.

1’s Complement number Discussion.

Detailed discussion on 1’ s Complement is covered with binary logic examples.

Binary numbers can also be represented by ‘radix’ and ‘radix -1’ forms.

In binary arithmetic 1’s complement of a binary number N is obtained by the formula  = (2^n – 1) – N

Where n is the no of bits in binary number N.

Example

Convert binary number 111001101 to 1’s complement.

Method:

N = 111001101

n = 9

2^n = 256 = 100000000

2^n -1 = 255 = 11111111

1’s complement of N = (100000000 – 1) -111001101

    011111111

 – 111001101

 = 000110010

Answer:

1’s complement of N is 000110010

Alternate approach to get ones complement :

Invert all the bits of the binary number

N = 111001101

1’s complement of N is 000110010

Refer 2’ s Complement from here.

Refer 2’ s Complement from here.

Interview Questions. Main, FPGA, Digital Fundamentals
LTE  Long Term Evolution topics here
Interview Questions. Main, FPGA, Digital Fundamentals
Binary Numbers.
2s_complement.
Previous                 Next