Holey_yan

20141002_KUAS_Verilog_HalfAdder(GateLevel)

Oct 17th, 2014
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /******************************************/
  2. /** 20141002 Half Adder (Use Gate Level) **/
  3. /** Maker  : Yan                         **/
  4. /** E-Mail : [email protected]       **/
  5. /** Date   : 2014/10/02 pm.10:00         **/
  6. /******************************************/
  7.  
  8. module HalfAdder(input1, input2, sum, carry);
  9.     input   input1, input2;
  10.     output  sum, carry;
  11.  
  12.     xor (sum, input1, input2);
  13.     and (carry, input1, input2);
  14. endmodule
Advertisement
Add Comment
Please, Sign In to add comment