URL
https://opencores.org/ocsvn/sc2v/sc2v/trunk
Subversion Repositories sc2v
[/] [sc2v/] [trunk/] [examples/] [half_adder.cpp] - Rev 27
Go to most recent revision | 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 }
Go to most recent revision | Compare with Previous | Blame | View Log