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

Subversion Repositories sc2v

[/] [sc2v/] [trunk/] [examples/] [half_adder.cpp] - Rev 36

Compare with Previous | Blame | View Log

// File: half_adder.cpp					// Line 1
#include "half_adder.h"					// Line 2
 
void half_adder::prc_half_adder () {	// Line 3
//  sum = a ^ b;						// Line 4a				
  sum.write(a ^ b);						// Line 4
//  carry = a & b;						// Line 5a
  carry.write(a & b);					// Line 5
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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