OpenCores
URL https://opencores.org/ocsvn/sc2v/sc2v/trunk

Subversion Repositories sc2v

[/] [sc2v/] [trunk/] [examples/] [half_adder.cpp] - Blame information for rev 27

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 jcastillo
// File: half_adder.cpp                                 // Line 1
2
#include "half_adder.h"                                 // Line 2
3
 
4
void half_adder::prc_half_adder () {    // Line 3
5
//  sum = a ^ b;                                                // Line 4a                              
6
  sum.write(a ^ b);                                             // Line 4
7
//  carry = a & b;                                              // Line 5a
8
  carry.write(a & b);                                   // Line 5
9
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.