Draft preview. Lessons are being written and reviewed.

Verilog practice / Problem 1

EasyGates

Four gates at once

Drive four outputs from the two inputs a and b: y_and is a AND b, y_or is a OR b, y_xor is a XOR b, and y_nand is NOT (a AND b).

Ports

NameDirectionBits
ainput1
binput1
y_andoutput1
y_oroutput1
y_xoroutput1
y_nandoutput1

How it's checked

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

Stuck? Read the lesson Logic gates and truth tables.

gates.vCtrl + Enter runs