#symbol
2개의 입력을 받아 더한 결과를 s로, carry가 발생했는지 co를 통해 확인한다.
결과를 보면 s = a ^ b
co = a & b 인 것을 알수 있다.
module HA(a,b,s,co);
input a,b;
output s,co;
_xor2 u_xor1(a,b,s);
_and2 u_and3(a,b,co);
endmodule
'Computer > Computer Structure' 카테고리의 다른 글
Carry Look-ahead Adder (1) | 2013.05.09 |
---|---|
Ripple Carry Adder (0) | 2013.05.06 |
Full Adder (0) | 2013.05.06 |
Multiplexer (0) | 2013.05.05 |
기본 Gate (0) | 2013.05.05 |