Draft preview. Lessons are being written and reviewed.

Verilog practice / Problem 5

EasyArithmetic

Full adder

Add three single bits a, b and cin. s is the sum bit and cout is the carry out. For example, 1 + 1 + 1 gives s = 1 and cout = 1.

Ports

NameDirectionBits
ainput1
binput1
cininput1
soutput1
coutoutput1

How it's checked

The test tries the input combinations and checks every output for each one.

Stuck? Read the lesson Half, full and ripple adders.

full_adder.vCtrl + Enter runs