module onesct15
title 'Combine outputs from two onescnt7 chips and one data bit' 
"ONESCT15 device 'P22V10'; 
" Note, this is really just a three-bit adder.

" Input and output pins 
A2..A0, B2..B0, D0    pin 1..7;
SUM3..SUM0            pin 17..20 istype 'com';

equations

[SUM3..SUM0] = [0, A2..A0] + [0, B2..B0] + [0, 0, 0, D0];

end onesct15
