summaryrefslogtreecommitdiff
path: root/rapport/assets/code/add1bita.tex
blob: 238a6b2b7d673e64cebdc023e1d5a8ff96f6ae40 (plain)
1
2
3
4
5
6
7
8
9
10
\begin{verbatim}
architecture Behavioral of Add1BitA is

begin

  O  <= (X xor Y) xor Ci;
  Co <= ((X xor Y) and Ci) or (X and Y);

end;
\end{verbatim}