Honors ICS - 1 : Bit Operations

Logic is about “Proof”

  1. Every step must be very solid and accurate
  2. Coherent

Bit Operations

3 basic operations (gate):

  • AND
  • OR
  • NOT

Voltage -> Bit

image-20260902175626444

Problem : Addition (Summation)

We will start at 1-bit addition like 1-digit addition

If will do not consider the carry out, but only the carry in. C=1C=1 is one iff A≠BA\neq B

A\oplus B=(A\and \neg B)\or(\neg A\and B)

image-20260907164928461

To simplify, we use a box:

image-20260907170451885

Therefore, SnSn−1…S1S0‾=A+B\overline{S_nS_{n-1}\dots S_1S_0}=A+B

Major Challenge : speed (Need to be count step by step)