Holey_yan

20141002_KUAS_Verilog_FullAdder_8Bit(DataFlow)

Oct 17th, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /***********************************************/
  2. /** 20141002 8-Bit Full Adder (Use Data Flow) **/
  3. /** Maker  : Yan                              **/
  4. /** E-Mail : [email protected]            **/
  5. /** Date   : 2014/10/02 pm.10:40              **/
  6. /***********************************************/
  7.  
  8. module FullAdder_8Bit(input1, input2, carryIn, sum, carryOut);
  9.     parameter   BitLenght = 8;
  10.     input       [BitLenght - 1 : 0] input1, input2;
  11.     input       carryIn;
  12.     output      [BitLenght - 1 : 0] sum;
  13.     output      carryOut;
  14.    
  15.     assign      {carryOut, sum} = input1 + input2 + carryIn;
  16. endmodule
Advertisement
Add Comment
Please, Sign In to add comment